Skip to content
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

Recommendations #1

Open
border-radius opened this issue Sep 4, 2014 · 0 comments
Open

Recommendations #1

border-radius opened this issue Sep 4, 2014 · 0 comments

Comments

@border-radius
Copy link
Owner

  1. Add recommendations field to the model (list of strings).
  2. Create websocket listener with address wss://bnw.im/ws?v=2.
  3. On message with type=upd_recommendations_count find Reply with id equals post id, update date (current) and recommendations fields. If Reply not found, create new with fields: id (post id), recommendations, date.
  4. Update Reply pre-save hook: if user field empty then add post body to the text field.
  5. Update angular view: wrap current .reply childs into div with ng-if="reply.user" and create new div directly in .reply with ng-if="!reply.user" and contents template for recommendation notification list of recommendators userpics (wrapped in links to meow user page) and node of text (wrapped in link to post in meow).
  6. Add styles for notification: horisontal list of userpics, repost symbol and piece of text (remain part of space).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant