NEAR-DevHub / neardevhub-bos

NEAR DevHub UI hosted on NEAR BOS
https://neardevhub.org
MIT License
23 stars 22 forks source link

Some posts are displayed as raw JSON #650

Open frol opened 6 months ago

frol commented 6 months ago

NOTE: I extracted this issue from #649, originally reported by @nearmax

Describe the bug

I go to my near.social feed and observe that some posts are displayed well while some posts are just raw JSON:

image image

I then follow the link and the post is still raw JSON:

Expected behavior

All reposted posts should be displayed on Social Feed correctly.

Additional context

My wild guess is that we have some issue on the publishing side (we might have some old component that is not compatible with the contract)

PiVortex commented 6 months ago

Post 2849 by myself is a blog post. The post by Ester also seems to be a blog post, but I cannot find the blog. It seems normal posts are fine, but blogs are not. Please note that the raw JSON DevHub posts do not appear on the activity feed (which they shouldn't).

There seems to be two solutions 1) Exclude blog posts from posting to the social feed 2) Parse the JSON into a common format for posting blog posts to the social feed

I would also like to mention that I think the cross posts to near social should come from the users account not the DevHub account. If I was to post something inappropriate to the DevHub feed it would seemingly be coming from the DevHub account on the social feed.

frol commented 6 months ago

is a blog post.

Aaaah! Jeez, we should have just created a top-level post on devhub for all the blog posts and then used that as the parent post for all blog posts, so we don't need to add so much customization everywhere :-( cc @ailisp @ori-near

I would also like to mention that I think the cross posts to near social should come from the users account not the DevHub account. If I was to post something inappropriate to the DevHub feed it would seemingly be coming from the DevHub account on the social feed.

@PiVortex Good call. Indeed, we are moving away from this model to Announcements (will be posted by community moderators on behalf of .community.devhub.near), Discussions (will be posted on behalf of the user and re-shared to the discussions..community.devhub.near), and Proposals (will be posted on behalf of the user and re-shared to the proposals.devhub.near).