Implement retweet / reshare using Parse

I have been stuck in this thread for a while, so any guidance would be appreciated.

Here's the setting: User A is following user B, but not with user C. User B is posting a message from user C. A published message is now displayed in user A’s item as the original message from user C and published by user B.

Actually confused what the structure looks like. I use Parse, so we can assume that I have a standard Users class and a Posts class.

-one
database ios structure
Jul 07 '14 at 5:18
source share
1 answer

I would add a reference column to the Posts class, which may contain a link to another post. When user B re-splits the message, you create a new entry in the Posts class that contains a link to the original message, but is listed as a message from B.

Now, when you receive messages that A is subscribed to, you will receive "repost" - you need to follow the link to get the original content from C. If you allow repeated messages about repeated posts, you may need to repeat this de-link until get to the original message.

+1
Jul 07 '14 at 5:25
source share



All Articles