New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
mastodoncustomemojis: out of order 馃毀 鈿狅笍 #5653
Comments
@MrPetovan Is there anything else I have to do? Because after git-pulling it still doesn't work. |
Please try to temporarily set |
Where do I have to add that config key? In my local.ini.php? And if so, is |
Yes, or you can use |
The syntax of the command seems to be wrong. But temporarily configuring it in local.ini.php did the trick. |
I forgot the |
I still see emojis shortcodes that should have been replaced by images. It always happen when the post content is generated by the worker, so I added some backend log, let's see what it finds. |
It looks like the @annando Any idea where the item content could be generated outside of |
Could you try to work with the daemon? (Just to compare possible differences). I already recognised problems with the loading of hooks. |
How do I work with the daemon? |
Just type |
Hmm, I'm getting this error in the standard output, could explain the Twitter malfunction on my side:
|
I'm currently am looking into it - and I guess I found something. |
Just updated, let's see. |
It is working here after I reset the cache. I have a suggestion: We could store the emoji data in config values and we could update it on a daily base - but only store it when not empty. |
New potential issue: For this post: Is the original author in author-link or the booster? Because Sean doesn't have any custom emojis on social.nasqueron.org, which would prevent any replacement. https://friendica.mrpetovan.com/display/e0f7609611df156d17358c9df3e93e00c6d16b57 |
Why in config value if it expires every day? Currently the TTL for populated emojis is a week, which is too long. We could shorten it for a day or even an hour. For empty arrays the TTL is 30 minutes but it could be reduced to 5. The API call is quick and they are spread across multiple instances anyway. |
The cache expires. So upon a temporary server failure the data is gone. This doesn't happen with config keys. BTW: after ignoring the cache, the post you mentioned above looked fine on my system. |
It isn't a problem if the data is gone, it would be re-fetched from the remote servers. |
For the next release it would probably an idea to fetch the emoji list during the regular server discoveries in the core. Then we could store this value in the |
For the next release it would probably an idea to fetch the emoji
list during the regular server discoveries in the core. Then we could
store this value in the ```gserver``` table.
What for?
I don't think these emojis serve any purpose. Having an addon to deal with them is fine if the admin of a node feels otherwise. In fact I think an addon is the perfect place for this functionality.
|
This fetching upon displaying the content does slow down the system and increases the network load. Having it only in a background process at a place where we already are querying this server would reduce the network load. Of course the displaying of these emojis would still not be done automatically. |
It's only a < 200ms call for Mastodon.social for example, it doesn't slow down the system that much, especially since the call is cached for hour. Also it doesn't slow down the system if the addon isn't activated. I agree with @tobiasd here, we don't need to bring out the big guns in the Core. The API call is fast and is cached, which means a post can still be processed in less time than it takes to simply load @tobiasd 's own profile page without the addon. This has never been about performance. |
It's not elegant ;-) |
Friendica is not elegant. Yet here we are! This is optional and a marginal performance hit, you can let it go, I promise. |
Confirmed it works this morning: https://friendica.mrpetovan.com/display/52acf9cd9788a6d64bb0960f6b367c8f29bd2ab7 |
Expected behavior
When mastodoncustomemojis is enabled Mastodon custom emojis should show up as emojis.
Actual behavior
They don't (anymore).
Quote of @MrPetovan
Steps to reproduce the problem
Discussion: https://libranet.de/display/98d99eb4155b7dc5ee677b2548461761
Test: https://libranet.de/display/52acf9cd63646e85c319d5dd562f01fc058a33c8
Friendica version you encountered the problem
2018.08-dev
Friendica source (git, zip)
git
PHP version
7.0.30
SQL version
10.0.34-MariaDB
The text was updated successfully, but these errors were encountered: