Commit graph

225 commits

Author SHA1 Message Date
Henry Jameson
f41341b79b fix notifications 2019-02-14 21:43:32 +02:00
shpuld
62e9525724 Add loading indicator for notifications, make timelines indicate bottoming out when no more statuses 2019-01-29 21:04:52 +02:00
shpuld
ca78623b34 fix user tl clearing and give it a test 2019-01-28 20:15:00 +02:00
William Pitcock
7b296696a3 user profile: add media timeline 2019-01-26 13:49:24 +00:00
Henry Jameson
f48e3d0db8 quickfix 2019-01-25 01:39:19 +03:00
Henry Jameson
9d0d6b86c8 this attempts converting id to number to sort them numerically, since "99" >
"100" while 99 < 100
2019-01-25 01:08:08 +03:00
Henry Jameson
80a7035154 removing unnecessary conversions since it should already be converted in normalizer 2019-01-17 23:57:24 +03:00
Henry Jameson
cab87744c8 Revert "some initial work to make it possible to use "unregistered" timelines, i.e. not"
and some stuff to make favorites still work

This reverts commit 039a407400.
2019-01-17 21:46:03 +03:00
Henry Jameson
5251de317d Merge branch 'switch-to-string-ids' into favorites
with some changes/merge conflicts resolution

* switch-to-string-ids:
  fixx?????
  fix notifications?
  fix lint
  fix tests, removed one unused function, fix real problem that tests helped to surface
  added some more explicit to string conversion since BE seem to be sending numbers and it could cause an issue.
  Remove all explicit and implicit conversions of statusId to number, changed explicit ones so that they convert them to string
2019-01-17 19:16:45 +03:00
Henry Jameson
387bf794ff fixx????? 2019-01-16 18:52:30 +03:00
Henry Jameson
7d15720339 fix notifications? 2019-01-16 17:30:47 +03:00
Henry Jameson
d7bd294666 migrated some tests to normalizer, fixed some potential bug, fixed tests to use
normalized naming instead of raw qvitter api objects. needs more tests tho.
2019-01-15 18:39:24 +03:00
Henry Jameson
966a9e78af cleanup 2019-01-14 22:59:44 +03:00
Henry Jameson
fd27c78c4b fixes, guards 2019-01-14 22:58:23 +03:00
Henry Jameson
790fcf37d2 notifications now also undergo some parsing, hypothetically could use MastoAPI
notifications, maybe.
2019-01-14 22:38:37 +03:00
Henry Jameson
5a3c9cfc9b post-merge fix 2019-01-13 22:25:48 +03:00
Henry Jameson
f9fb85ee42 Merge remote-tracking branch 'upstream/develop' into favorites
* upstream/develop:
  Add Korean translation
  Change emptlyTl to take userId
  better fix
  fixes #265 and also that thin line below gradient on chrome (UGH)
  fix #262 part of user profiles not being able to load previous posts
  Retain userId on clearing user timeline, don't flush when empty timeline
2019-01-13 22:21:09 +03:00
Henry Jameson
4be737b4df moved some stuff from statuses to api service. added initial adapter (currently
mastoapi status -> qvitter status, would change some naming in the future)

favorites timeline works somewhat, notifications are broken because they are
fetched using same code to fetch usual timeline/using old architechture
2019-01-13 01:26:24 +03:00
Henry Jameson
039a407400 some initial work to make it possible to use "unregistered" timelines, i.e. not
reserving a timeline by name, instead just passing timeline object itself.
2019-01-12 23:33:45 +03:00
Henry Jameson
22e0686395 fix lint 2019-01-11 03:41:57 +03:00
Henry Jameson
b18e27c6d4 fix tests, removed one unused function, fix real problem that tests helped to
surface
2019-01-11 03:38:23 +03:00
Henry Jameson
48e811e6ed added some more explicit to string conversion since BE seem to be sending
numbers and it could cause an issue.
2019-01-11 03:00:11 +03:00
Henry Jameson
ef2585e32b Remove all explicit and implicit conversions of statusId to number, changed
explicit ones so that they convert them to string
2019-01-11 02:40:17 +03:00
shpuld
b8b18b198d Change emptlyTl to take userId 2019-01-09 22:19:02 +02:00
shpuld
a8f6099be2 Retain userId on clearing user timeline, don't flush when empty timeline 2019-01-08 23:09:03 +02:00
HJ
fa8ecb1c39 User Card Content fixes and updates 2018-12-26 09:19:25 +00:00
Henry Jameson
5c2030e467 no more "broken favorite" 2018-12-19 01:55:53 +03:00
Henry Jameson
8f255fbad4 Refactor follower/friends out of statuses/timeline into user_profile where it
belongs. Changed display of profile to single panel with tabs.
2018-12-17 19:14:38 +03:00
lambda
ea28aa62f0 Merge branch 'ss-read' into 'develop'
Server-side read marking

See merge request pleroma/pleroma-fe!386
2018-12-03 14:47:27 +00:00
Henry Jameson
ccb1682379 Add userId property to timelines so that we don't overwrite user timeline meant
for another user
2018-12-03 09:29:33 +03:00
Henry Jameson
b555d617e4 removes hacks from notifications storage, adds api call to let server update
is_seen attribute
2018-12-02 13:36:11 +03:00
eal
3ed05693de DM timeline: stream new statuses 2018-11-25 18:11:57 +02:00
Roger Braun
b37a0f4f23 Add direct message tab. 2018-11-13 20:34:56 +01:00
Henry Jameson
507d5bc444 fixup! Added logic to process reply to favorite request and update likes counter accordingly. Should fix some of cases of doubled likes and likes counter not decrementing. 2018-08-30 16:27:35 +03:00
Henry Jameson
b0e0686c7f Added ability to hide certain types of notifications 2018-08-28 21:21:29 +03:00
Henry Jameson
226849b26e Added logic to process reply to favorite request and update likes counter
accordingly. Should fix some of cases of doubled likes and likes counter not decrementing.
2018-08-27 23:15:58 +03:00
Henry Jameson
a196c3551a Revert "Drop the entire thing about hidden "own" timeline since it doesn't necessarily"
This reverts commit 612aa56c8b.
2018-08-21 00:21:35 +03:00
Henry Jameson
b97db4912d error display 2018-08-20 20:45:54 +03:00
Henry Jameson
9e78c64d5e Hide initial desktop notifications spam when FE is opened and there's a lot of
unseen notifications.
2018-08-20 19:58:49 +03:00
Henry Jameson
612aa56c8b Drop the entire thing about hidden "own" timeline since it doesn't necessarily
contain all of the users posts (it doesn't contain DMs) even though it's "us".
Since this is a workaround anyway just fetch home timeline instead. It could end
up making more queries if user doesn't post that often.
2018-08-20 19:01:54 +03:00
Henry Jameson
0b6f9c62a1 fix 2018-08-18 13:41:23 +03:00
Henry Jameson
e8f7491003 fixed favoriting from notification column 2018-08-16 13:20:29 +03:00
Henry Jameson
ef04a78634 added workaround for broken favorites 2018-08-16 13:12:31 +03:00
Henry Jameson
d085cc8584 undo test condition 2018-08-12 14:15:09 +03:00
Henry Jameson
63650aec29 Added support for qvitter api fetching of notifications 2018-08-12 14:14:34 +03:00
Francis Dinh
556eb4b8a3 add unretweet action to statuses.js 2018-06-14 17:17:36 -04:00
Roger Braun
935b7745ea Fix nsfw in notifications again. 2018-04-23 19:22:28 +02:00
Roger Braun
39026f8bc3 Fix repeat nsfw hiding. 2018-04-23 19:07:47 +02:00
shpuld
573f01650b Copy parent status nsfw into retweeted_status 2018-04-16 18:19:42 +03:00
shpuld
208b2ed125 Additional check to make console shut up 2018-04-15 00:06:00 +03:00
shpuld
e88bb1a23e I broke timelines again, fixed now again (hopefully). 2018-04-14 22:13:28 +03:00
shpuld
3488141fdd Whoops, broke older statuses accidentally 2018-04-14 17:18:07 +03:00
shpuld
dff27357d4 remove +1/-1 from min/max id checking 2018-04-14 16:33:53 +03:00
shpuld
a0e7803e42 change timeline min/max id updating behavior to not get stuck with 20 wrong type of activities on fetch older. 2018-04-13 22:35:55 +03:00
shpuld
a1f6ef1dca Loads of fixes: notifs, autoload setting, overflow, faint text, reply form, status fadein. 2018-04-11 19:34:40 +03:00
shpuld
6b773902e8 Fix mistake in flushMarker init, make startFetching behave properly with older statuses existing. 2017-11-23 13:46:37 +02:00
shpuld
fc1736618b attempt to recognize when holes in timeline for various reasons, clear timeline and fetch older when showing new to get rid of holes 2017-11-21 16:12:47 +02:00
Roger Braun
099bac517a Fix mention timeline. 2017-11-20 12:13:17 +01:00
lambda
d6478068f8 Merge branch 'feature/streaming-posts' into 'develop'
Streaming posts

See merge request pleroma/pleroma-fe!151
2017-11-13 09:10:44 +00:00
shpuld
c682a4b007 Don't add notification on self mention, (and fix that pesky pleroma vs gs delete bug) 2017-11-12 23:15:47 +02:00
Henry Jameson
4cf580ee31 moved notification asking from page load to login event. Added image in
notifications support (doesn't work for native KDE notifications for me tho)
2017-11-13 00:11:55 +03:00
Henry Jameson
3dc375f442 initial implementation for desktop notifications 2017-11-12 23:34:08 +03:00
shpuld
d2ef145115 Don't show repeats that have been shown already. 2017-11-09 08:36:11 +02:00
eal
9abfcb34ef Add tag timeline view. 2017-09-17 14:26:35 +03:00
eal
5bd6abc134 Add regex for follows from pleromabe 2017-08-24 21:53:31 +03:00
Shpuld Shpuldson
2bc261afba Merge branch 'feature/follow-lists' into 'develop'
Feature/follow lists

See merge request !106
2017-08-23 12:40:39 -04:00
eal
ccfc2e57d0 Add follower and following views 2017-08-23 19:14:06 +03:00
Shpuld Shpuldson
3d9d59915b Add regex to check if you're the one being followed before adding notification. 2017-08-21 23:31:38 +03:00
Shpuld Shpuldson
1136db24cc Fix issue with trying to match() on undefined 2017-08-18 12:38:47 +03:00
Shpuld Shpuldson
052befa581 fix the very annoying thing where favs from pleromabe would not generate notifs when on GS 2017-08-18 12:26:07 +03:00
eal
701112f043 Add follow notifications. 2017-08-10 19:17:40 +03:00
Roger Braun
8e5d17a659 Use tags array in status if available. 2017-06-18 19:19:17 +02:00
Roger Braun
e663420260 Fix notification deletion. 2017-06-13 12:01:47 +02:00
Roger Braun
bda0a76c89 Clear timeline on user change. 2017-06-12 16:30:56 +02:00
Roger Braun
090148ef60 Start fetching user timelines. 2017-06-12 16:00:46 +02:00
Roger Braun
9982296866 Don't crash on unknown status deletion. 2017-06-07 17:03:14 +02:00
Roger Braun
72de959221 Remove notifications for deleted messages. 2017-06-06 15:54:08 +02:00
wakarimasen
e064d2da4d Use one error variable for all timelines 2017-03-09 13:38:32 +01:00
Roger Braun
0d39ed809b Add caching system to statuses. 2017-03-08 21:04:48 +01:00
wakarimasen
086dd832d3 Visual feedback on failure to fetch new statuses 2017-03-07 17:27:12 +01:00
Roger Braun
209e8614b0 Don't add notifications twice + persiste them. 2017-02-18 20:56:03 +01:00
Roger Braun
963a0035e5 Make page title dynamic, better notification handling. 2017-02-18 20:44:41 +01:00
Roger Braun
e892fffda7 Correctly calculate the newStatusesCount.
Fixes a bug when viewing an updating twkn while logged in.
2017-02-16 12:51:24 +01:00
Roger Braun
c1d0b04105 Make minVisibleId actually dependent on visible statuses. 2017-01-01 18:10:25 +01:00
Roger Braun
7978ffeb1d Check all statuses in timeline for old retweets.
This will fix the problem of retweets showing up again and again.
2016-12-08 12:45:09 +01:00
Roger Braun
026ab7c1df Merge branch 'develop' of ssh.gitgud.io:lambadalambda/pleroma-fe into develop 2016-12-05 20:49:58 +01:00
Jiayi Zheng
75fdc72e22 Implements feature status delete
Fixes issue #4
2016-12-04 18:30:00 +01:00
Roger Braun
917917596f Only add mentions to the mentions timeline once. 2016-12-03 12:48:37 +01:00
Roger Braun
58ac8f51a2 Treat mentions more like a timeline. 2016-12-03 12:43:21 +01:00
Roger Braun
4c5d60ab85 Reactivity fixes for attachments. 2016-12-01 18:05:20 +01:00
Roger Braun
9681bb7bfd Add noIdUpdate option for addNewStatuses action.
This fixes #11.
2016-11-28 21:25:36 +01:00
Roger Braun
cc00eb898f Switch from moment.js to vue-timeago.
Much smaller filesize for vendor.js, although we'll have to see if all
the intervals are ok.
2016-11-28 17:37:47 +01:00
Roger Braun
e1c5030311 Add notification on mention. 2016-11-27 19:11:05 +01:00
Roger Braun
51988e75b6 Add repeat notifications. 2016-11-27 18:57:33 +01:00
Roger Braun
ff93d1edee Parse mastodon favorites. 2016-11-27 18:54:17 +01:00
Roger Braun
6c2941dba0 Basic mention support.
I still have to think about how to integrate them in the state system...
2016-11-26 21:09:41 +01:00
Roger Braun
1d8c813135 Better handling of favorites. 2016-11-25 16:56:08 +01:00
Roger Braun
a5f523922c Make timelineless status adding possible. 2016-11-24 18:15:34 +01:00
Roger Braun
362b6200c5 Merge branch 'master' of ssh.gitgud.io:lambadalambda/pleroma-fe 2016-11-22 11:29:52 +01:00
Roger Braun
281c71b191 Move addNewStatuses code around. 2016-11-21 16:33:08 +01:00
Roger Braun
05f9e68dab Fixes for deletion. 2016-11-19 13:08:44 +01:00
Roger Braun
47ddf8c3fb Small status reducer changes. 2016-11-19 12:39:10 +01:00
Roger Braun
e7637e4196 Add first notification.
This adds a favorite notification.
2016-11-18 22:55:04 +01:00
Roger Braun
4cef86f2a8 Add status deletion.
Kind of wonky. Would be better if we used the AS endpoints.
2016-11-18 22:25:42 +01:00
Roger Braun
9171b382fe Complete rewrite of status adding code.
This now uses nearly only mutation, to take advantage
of vue's mutation tracking.
2016-11-18 19:48:02 +01:00
Roger Braun
8723c35d43 A bit more advanced status merging. 2016-11-18 16:05:04 +01:00
Roger Braun
4fcb60487c Do more mutation-y status reducing. 2016-11-17 18:31:26 +01:00
Roger Braun
d10a58f26a Some reducer changes for statuses. 2016-11-15 10:35:16 +01:00
Roger Braun
aeb8868b82 prepareStatus: created_at_parsed. 2016-11-13 22:54:49 +01:00
Roger Braun
59647798b9 prepareStatus: nsfw tag parsing. 2016-11-13 22:40:33 +01:00
Roger Braun
5888697c0d Better maxId calculation. 2016-11-13 22:19:14 +01:00
Jiayi Zheng
11125abeeb Implement retweet action 2016-11-13 17:09:16 +01:00
Roger Braun
05733b6bc9 Remove attachment links, as we are already showing them. 2016-11-12 22:41:43 +01:00
Roger Braun
f8a3afc9d1 Don't put statuses we received from retweets into timelines.
They should be in allStatuses to keep only one reference, but they
should not get into the timeline, or it will mess up old status
fetching, because they have a very low id.
2016-11-07 22:09:34 +01:00
Roger Braun
79b2243f6c Simplify nsfw setting. 2016-11-07 18:47:38 +01:00
Roger Braun
cc7f7a29cf Better retweet handling.
Fixes problems with liking + likes count.
2016-11-07 18:36:11 +01:00
Roger Braun
78db0db637 Restructure status module for easier testing. 2016-11-07 18:04:00 +01:00
Roger Braun
e1103f04a4 Add fetching of older statuses. 2016-11-06 17:44:05 +01:00
Roger Braun
88d960b9f6 Make created_at_parsed reactive. 2016-10-31 10:20:02 +01:00
Roger Braun
8630f91a13 Add favorite-button. 2016-10-30 16:12:35 +01:00
Roger Braun
500b704c0f Fix up nsfw and some styling. 2016-10-29 01:38:41 +02:00
Roger Braun
7b92ca6f94 Update timestamps after fetch. 2016-10-28 15:59:49 +02:00
Roger Braun
eab256a7e5 New status showing. 2016-10-28 15:40:13 +02:00
Roger Braun
945ea5e69f Update modules. 2016-10-27 18:03:14 +02:00
Roger Braun
4c2764c747 . 2016-10-26 19:03:55 +02:00