autogestion / pubgate-philip

Minimalist blogging ActivityPub client made with Svelte
10 stars 2 forks source link

WIP implement mentions + findUser falls back to webfinger #28

Closed traumschule closed 4 years ago

traumschule commented 4 years ago

see #26, #27

  1. [X] match @user@domain or @user (base_url is used)
  2. [X] wrap in html
  3. [X] create mention object
  4. [X] add cc
  5. [ ] test search with non-pgi

Note: the output specification requires "cc": [<user_id>]. When mentioning multiple users backend raised 500 because the cc list was inserted as an array. Hence line 46 in Publish.svelte is ap_object.cc = mentions.map(m => m.href); instead of ap_object.cc = [mentions.map(m => m.href)];

autogestion commented 4 years ago

Screenshot_39 tested mentions. looks like domain part should be cropped. Or maybe put the hole username (with domain) inside <span>$2</span>

autogestion commented 4 years ago

and renders incorrect url in cc (which will be used by server to notify person which was mentioned) Screenshot_41

traumschule commented 4 years ago

thanks for testing! needs some more :)

autogestion commented 4 years ago

Have tested mentions, works fine Screenshot_42 Mentioned user do not follow test acc, still got post where he is mentioned

Same time, fallback to webginger failed when tried to search for putinhujlo@pleroma.site