[bug] Valid EmojiReacts with custom emoji are discarded if tag is an object instead of an aray #720
Labels
No labels
approved, awaiting change
broken setup
bug
cannot reproduce
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs change/feedback
needs docs
needs tests
not a bug
not our bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AkkomaGang/akkoma#720
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Your setup
From source
Extra details
No response
Version
3.10.4-1-gebfb617b
PostgreSQL version
14
What were you trying to do?
When receiving an emoji reaction (
EmojiReact) with a custom emoji, it's discarded (Unhandled activity) when thetagproperty is just an object (which is valid JSON-LD, and the canonical way it's compacted), instead of an array.Example activity:
What did you expect to happen?
No response
What actually happened?
No response
Logs
No response
Severity
I cannot use it as easily as I'd like
Have you searched for this issue?
[bug]to [bug] Valid EmojiReacts with custom emoji are discarded if tag is an object instead of an araythis will be fixed by #739
On a tangential note, i see this sample (from IceShrimp.NET?), like Akkoma, also uses the image url as an Emoji id. This was reported to be problematic with suboject refetches: #694
The leading idea currently is to just send emoji as any anonymous (sub)object (explicit
nullid). *oma never reads emojiids anyway atm and iirc from checking Misskey code it explicitly handled incomingnullids gracefully (but also never attempts to refetch fromid) and presents its own emoji as proper, fetchable objects.I don’t know how Mastodon/Fedibird will handle null ids.
You’ll might also want to use a fetchable
ids ornullhere.@Oneric & @puckipedia: thank you. Fixed in
iceshrimp/Iceshrimp.NET@333611f65e