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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Respost Issue #103
Comments
@sachaarbonel do you have any ideas on this? |
Can you expand on what you are trying to achieve? Add a count on the number of shares? |
The idea would be to achieve what Facebook and Twitter and others do for a retweet or repost. The support team sent me what I added above but when I add the reaction to the person that pressed the share buttons feed it really does not provide any useful information it doesn't even have the reaction data. |
Oh I see, this currently being worked on as we speak but basically in a nutshell (trying to peel the layers for you): stream-feed-flutter/packages/stream_feed_flutter/lib/src/widgets/buttons/reaction.dart Line 41 in a315369
to know if the user has already reacted: stream-feed-flutter/packages/stream_feed_flutter/lib/src/widgets/buttons/reaction.dart Lines 42 to 43 in a315369
stream-feed-flutter/packages/stream_feed_flutter/lib/src/widgets/buttons/reaction.dart Lines 95 to 96 in a315369
based on that information we know if we should add or remove that reaction kind and wich icon we should display (repost, comment or heart for example) stream-feed-flutter/packages/stream_feed_flutter/lib/src/widgets/buttons/reaction.dart Line 116 in a315369
for a repost reaction, "kind" being "repost" stream-feed-flutter/packages/stream_feed_flutter/lib/src/widgets/buttons/repost.dart Line 38 in a315369
you can then fetch your enriched activities like this for example (feedGroup here is the slug, for example user, etc)
|
@sachaarbonel I think the issue is getting the activity as I already have the counts and added reactions but when I do this:
When trying to get the feed I have it set like this:
But the reaction is only there not the repost and the data that was added to the reaction is not there. |
What do you mean by the reaction is only there not the repost? As I understand the reaction is the repost. |
@sachaarbonel This is all that shows in the user feed for the person that reposted an activity |
Notice how on my reaction I even add data but its not there:
|
But then that defeats the point of a repost won't it. How will we get the activity? |
@sachaarbonel I hope that helps |
I think I see what is happening @sachaarbonel it looks like the post ID is added to the object field. I am trying to use that as a work around I will give that a go. |
Thanks for elaborating on this. I shared your issue with a member of the react team I'll get back to you when I have more input on this |
I got it to work it's odd but when I get the object for the reaction it then returns the whole post @sachaarbonel thanks for the help it got me to this. If the react team has a better approach I am all for it. |
I have a question. I am trying to do a repost/share as Facebook and Twitter do but when I use the code below I have issues. The activity is not copied to the target feed just the reaction does and not even the data that is added to the reaction.
The text was updated successfully, but these errors were encountered: