Commit Graph

13 Commits

Author SHA1 Message Date
St John Karp 71ea1c3084 Fix #6 - Add error handling for deleting an already deleted status
Added a basic error page and implemented handling for deleting a
status that can't be found.
2019-03-25 16:23:19 +00:00
St John Karp 7fc59f1c58 Fix #5 - Implement deleting statuses
Added a link (and a confirmation page) that allows a user to delete
their own Statuses.
2019-03-24 19:45:36 +00:00
St John Karp 98a5b744ed Don't duplicate original poster in mentions
Reply-to accounts were compiled by getting the original poster + all the
mentions returned by the API. The OP now seems to be included in the
mentions, which duplicated that account in the list. I've stripped
it down so it just uses the list of mentions returned by the API now.
2019-02-18 00:08:19 +00:00
St John Karp 3d1747e13e Code clean-up, refactoring, commenting
Did an audit of the code to tidy things up, refactor, get rid of
some unused stuff that came with Laravel, and comment everything.
2018-10-10 17:58:51 -07:00
St John Karp 157b9eed48 Exclude the logged-in user from reply mentions
When posting a reply, exclude the current user from the automatically
populated list of mentions.
2018-10-10 15:09:51 -07:00
St John Karp f873271675 Send token when querying a status
If the user is logged in, send their token when querying for a status.
This prevents the API returning a 404 when the status being queried
is private or direct.
2018-10-08 07:13:34 -07:00
St John Karp 0247f8b57e Favour redirects over re-using the same paths
I was re-using the same paths for a bunch of stuff in order to
minimise redirects (POSTing new statuses to the timeline, or performing
actions on a status), but then this breaks the behaviour of the
browser's refresh button. I've moved all those actions to their
own paths, which helps break up the code, makes the URLs more
semantic, and lets you use the refresh button without accidentally
performing an action.

This is at the expense of an additional HTTP request, but I've
tried to minimise the cost by passing through the status from the
previous action so we don't have to requery for it on the server
side.
2018-08-26 14:34:01 -07:00
St John Karp 96cb4ffcc6 Implement status context page
Implemented a new page that shows a status context, though I'm
calling it a "thread" in the UI because I think that makes more
sense for users. Also moved the action element from the notification
into the event info component itself because I also want to use it
to indicate when a status is a reply.
2018-08-26 13:37:55 -07:00
St John Karp d2c1874f0b Implement reblogging
Implemented ability to reblog a status.
2018-08-19 10:50:28 -07:00
St John Karp eb513faf9b Tidy up some of the status routing
Status routes were a bit of a mess and involved redirects,
which is only going to slow things down. I've amalgamated them
into one route and used query parameters to determine any actions
being performed.
2018-08-19 09:24:28 -07:00
St John Karp d8f88af21b Move user authorization checks into a route middleware class
Moved the check for the user's session out of individual views
and into a route middleware class.
2018-08-18 15:57:39 -07:00
St John Karp 1ca86208d5 Add ability to favourite a status
Implemented the ability to favourite and unfavourite a status.
2018-08-18 15:52:42 -07:00
St John Karp 7cd1d14d8a Implement reply functionality
Created a new status view that shows a single status and permits
replies if you're logged in.
2018-08-14 08:14:39 -07:00