Commit Graph

71 Commits

Author SHA1 Message Date
Niko 86326e05f5 Fix server.js with the new versions of npm packages 2022-03-30 21:00:42 +02:00
Niko c78b96f54d Update NPM packages to latest current version 2022-03-30 20:52:27 +02:00
Niko f6e673f795 Added settings.profile method and API to modify account ".name"
* Also added the needed framework for future value modifications
* TODO: send profile update notification to following servers
2022-03-20 02:58:29 +01:00
Niko 5fa906270b WIP: added settings/profile page with basic information load 2022-03-14 22:00:21 +01:00
Niko a3dfbbdde4 Change instance emojis code to retrieve all (even if servers didn't send them as Emoji object) 2022-03-14 21:58:00 +01:00
Niko a0050ded4a Little bug fixes and improvements
* Improved html treatment on quizs
* Redirect to home when quiz does not exist
* Show quiz send confirm message only when form validated
2022-03-09 00:05:53 +01:00
Niko 058826feaa Add published field on "Note"s send to other servers 2022-03-06 20:52:14 +01:00
Niko 1e698ae289 Add default avatar in accounts.getAccount API 2022-03-06 20:37:27 +01:00
Niko 03356275e4 Change activity IDs for api.accounts methods 2022-03-05 21:32:25 +01:00
Niko e5abc50884 Change IDs for activity and object in api.me.sendNote 2022-03-05 21:28:16 +01:00
Niko eec496c253 Make quiz "responses" write only when validated 2022-03-05 21:01:06 +01:00
Niko 8d2416f3c5 Fix debugging if(false) left 2022-03-05 20:59:17 +01:00
Niko c6958de973 Added API method to create "Note" with different visibilities 2022-03-05 20:55:12 +01:00
Niko f6b03ee4c8 Move html2text to a function in utils.js + Securing html in outbox texts 2022-03-02 00:25:11 +01:00
Niko 73bdac849f Added function for replying to a Quiz request from any platform
* The reply format is just regular HTML (text) which will help the
 originating user to choose if we can be it's crush
2022-03-01 23:59:55 +01:00
Niko f00aa6d9d8 Basic code added for sending quizs.
TODO: check quiz is valid, it hasn't been responded yet, and is owned by the actor responding
+ create Note with the response for activitypub + create federation INBOX event for parsing responses
2022-02-28 22:05:18 +01:00
Niko caffafa7fc Sort API me.quizs by DESC order 2022-02-23 15:56:06 +01:00
Niko 8dc1923219 Include active quizs.id in the /feed/meet API 2022-02-23 14:49:03 +01:00
Niko 791bb1eaf0 Make getQuiz a wrapper for use in other API methods 2022-02-23 14:47:57 +01:00
Niko 2e6b06ed57 Implement pages.quiz for loading and filling a Quiz in /app
* Added id= filter in API /me/quizs
* Added animations slide-to-(right|left)
* TODO: develop the quiz.index template
2022-02-22 22:26:13 +01:00
Niko ffc8f14280 Add "account" object in API /me/quizs 2022-02-22 18:12:58 +01:00
Niko 3de7d6b29a Create API method for getting quizs for me 2022-02-22 17:46:04 +01:00
Niko c6dd391bbf Support deletion of quiz when the Note deletion is related 2022-02-22 10:07:39 +01:00
Niko ab39f741f3 Intercept AP Create.Note and check if contains #fedilovequiz to parse
* FediLove Quiz is a standar text-based (parsed) protocol wrapped inside the object "Note"
 that can create a Quiz inside FediLove instance so there can be an interaction between non-FediLove
 instances and FediLove instances.
* TODO: implement the response from this side, so it goes parsed as a regular response to the original "Note"
 but parsed so if the target instance is FediLove, it parses it as a quiz result and can be interpreted on any AP software
2022-02-21 23:54:59 +01:00
Niko 9f587750eb Added a "app.warn" ns in locales for warning messages instead of all error 2022-02-21 22:27:28 +01:00
Niko 4bb004f675 Support AP post deletion event 2022-02-21 20:31:44 +01:00
Niko 498110c7c3 Don't show private messages on pages.meet feed 2022-02-21 18:53:13 +01:00
Niko 7ba0468aaa Added authenticated API methods to block/unblock accounts
* This will also make it discard that accounts in meet timeline
2022-02-18 17:05:33 +01:00
Niko e9feb6d912 Support joinmastodon.org#Emoji ns custom emojis 2022-02-18 11:26:19 +01:00
Niko 5c5c5091b4 Make pages.meet post expand post "tags" into the HTML 2022-02-17 21:56:23 +01:00
Niko a0b7b85e8f Fix copy/paste bad code on /api/me/pending_follows 2022-02-17 02:13:25 +01:00
Niko e6e67b2b09 Implemented loadMore pagination on pages.meet 2022-02-17 01:24:26 +01:00
Niko 456b9cea18 Don't show replies on /feed/meet 2022-02-16 22:03:42 +01:00
Niko 4c562ebaff Support custom post FG and BG colors by settings "fedilove_pcolors" tag 2022-02-16 21:14:31 +01:00
Niko 71881aead9 Add "props" for AP Person using the schema.org#PropertyValue 2022-02-16 20:35:48 +01:00
Niko 64daaab7d6 New API for /feed/meet + adapt UI templates and JS to new API 2022-02-16 19:29:04 +01:00
Niko 1457cfcf56 Refactor api.url to api.v1 (for later API changes, maybe) 2022-02-16 18:56:03 +01:00
Niko 88db838830 Add "manuallyApprovesFollowers": true (always) to /u/:actor json 2022-02-16 18:39:36 +01:00
Niko e3c3bf6b11 Added API pending_follows (Matches) + some refactoring 2022-02-16 18:09:36 +01:00
Niko c6d48b65a3 Automatically accept if local user is following remote user (accepted) 2022-02-16 17:13:32 +01:00
Niko 2f69c506cc Support AP remote following to accounts (not accept yet) 2022-02-16 16:02:58 +01:00
Niko 862f968f1b fix lexic typo 2022-02-16 15:47:49 +01:00
Niko 6b17ac70b1 Added "getAccount" to get an specific actor relevant data for APIs 2022-02-16 15:45:45 +01:00
Niko 51c29b034b Make sure a "Reject" event removes "accepted" state (if any) 2022-02-16 14:54:38 +01:00
Niko 8adfdac253 If remote user blocked a user, make user unable to follow 2022-02-16 14:36:04 +01:00
Niko 629de2d8b7 Make sure "Block" object only stores strings (not array) in "actor|object"
* This is done so we can faster search for blocks without using $elemMatch on mongodb
2022-02-16 14:30:22 +01:00
Niko c7d8a075b9 Wrap getAPObject to match given type + refactor 2022-02-16 14:17:22 +01:00
Niko c8bba73b99 Capture Inbox "Accept" event of "Follow" and update property "accepted" 2022-02-16 14:05:50 +01:00
Niko 98a4449de4 Support "Block" operations on ActivityPub
* TODO: inhibit interactions on our side from a blocked Actor
2022-02-16 11:55:46 +01:00
Niko 27ac14da3d Delete a "Block" event when recieved in INBOX 2022-02-16 11:15:39 +01:00