Commit graph

3440 commits

Author SHA1 Message Date
Daniel Lugo
fc375be37f Merge pull request #95 from shocknet/follows-gun-bug-fix
circumvent gun.load() bug
2020-06-27 18:49:28 -04:00
Daniel Lugo
18a3143d8f circumvent gun.load() bug 2020-06-27 18:47:45 -04:00
Daniel Lugo
c106fd7410 re-enable follows 2020-06-27 18:28:01 -04:00
Daniel Lugo
3c72432dce simple feed functionality 2020-06-27 18:25:32 -04:00
Daniel Lugo
75aeb7af42 add ramda 2020-06-27 16:27:43 -04:00
CapDog
e6eeacda95 Merge pull request #94 from shocknet/docker-files
add docker files
2020-06-27 10:54:55 -04:00
boufni95
017dbab0c9 add docker files 2020-06-27 16:30:50 +02:00
Daniel Lugo
c569526c52 route param optional 2020-06-27 02:43:45 +01:00
Daniel Lugo
140b0a43b0 support public key lookup for wall 2020-06-26 21:15:53 -04:00
Daniel Lugo
b1594e1707 correct place for count correction 2020-06-26 21:12:23 -04:00
Daniel Lugo
ca9ecb6c80 more precise count 2020-06-26 21:10:53 -04:00
Daniel Lugo
9c8d36e380 Merge pull request #89 from shocknet/feat/walls
Feat/walls
2020-06-26 20:58:42 -04:00
Daniel Lugo
a8104d490c circumvent gun.load() bug 2020-06-26 19:58:19 -04:00
Daniel Lugo
35e2197095 check return type from gun 2020-06-26 13:08:14 -04:00
Daniel Lugo
d0349669f9 check return type from gun 2020-06-26 13:00:38 -04:00
Daniel Lugo
0be779b73c correctly reject errors 2020-06-26 13:00:21 -04:00
Daniel Lugo
146d03e771 Merge branch 'master' into feat/walls 2020-06-26 12:42:37 -04:00
Daniel Lugo
d80cbac712 Merge pull request #92 from shocknet/bug/cache-get-requests
bug/cache-get-requests
2020-06-26 11:41:40 -04:00
Daniel Lugo
39c01733d7 better initialization 2020-06-25 19:03:34 -04:00
Daniel Lugo
552e625e5f initial value of 1 for page 2020-06-25 18:45:31 -04:00
emad-salah
d9e9d4f90a Caching now only works on GET requests and added .env toggles for toggling caching and warnings related to it. 2020-06-25 21:50:49 +01:00
Daniel Lugo
d02085abea correct validation 2020-06-25 13:31:30 -04:00
Daniel Lugo
304e4f314a validate page number 2020-06-25 13:28:08 -04:00
Daniel Lugo
37c50d2132 Merge branch 'feat/walls' of https://github.com/shocknet/api into feat/walls 2020-06-25 18:03:47 +01:00
Daniel Lugo
a8833b6013 parse page as number 2020-06-25 18:03:18 +01:00
Daniel Lugo
89862c376c remove dup code 2020-06-25 13:01:15 -04:00
Daniel Lugo
9574634b30 correct page index for negative page arguments 2020-06-25 12:58:10 -04:00
Daniel Lugo
4122f6e5ae check out ouf bounds 2020-06-25 12:33:54 -04:00
Daniel Lugo
fcfd649042 assign id 2020-06-25 12:30:26 -04:00
Daniel Lugo
2e516eeeef better wall getter 2020-06-25 11:48:05 -04:00
Daniel Lugo
0cc581c520 correct path 2020-06-25 11:03:16 -04:00
Daniel Lugo
9038b20b71 correct path 2020-06-25 10:49:35 -04:00
Daniel Lugo
c543647aba typo 2020-06-24 17:43:39 -04:00
Daniel Lugo
1b6fe78947 typos 2020-06-24 17:40:09 -04:00
Daniel Lugo
b7abbb2535 ensure it's object 2020-06-24 17:27:36 -04:00
Daniel Lugo
ba12d42d39 typo 2020-06-24 17:12:31 -04:00
Daniel Lugo
b4c22228ec sanitize before validation 2020-06-24 17:05:06 -04:00
Daniel Lugo
6fb804701c optimization 2020-06-24 17:01:20 -04:00
Daniel Lugo
8bb27affa0 writes number of pages after first post 2020-06-24 16:49:11 -04:00
Daniel Lugo
87a71e4fc5 better post creation process 2020-06-24 14:18:03 -04:00
Daniel Lugo
4a80fe5caf always return a number 2020-06-24 09:17:59 -04:00
Daniel Lugo
d139a6a052 return 0 if no page counter has been set 2020-06-24 09:08:19 -04:00
Daniel Lugo
9dd2708f80 provide total pages in api response 2020-06-24 08:57:26 -04:00
Daniel Lugo
82a55c5091 do not use promisifygunnode 2020-06-24 13:38:49 +01:00
Daniel Lugo
ed3e343e0e validate posts must contain at least one paragraph/image/video 2020-06-24 12:58:00 +01:00
Daniel Lugo
eecfe34156 save content items correctly 2020-06-24 07:18:54 -04:00
Daniel Lugo
c438d3293f javascriptier exports 2020-06-24 07:14:11 -04:00
Daniel Lugo
fb9b71781e import gun/lib/load 2020-06-23 19:35:20 -04:00
Daniel Lugo
9e723d6515 wall GET 2020-06-23 19:28:36 -04:00
Daniel Lugo
06f969b64e wall getters 2020-06-23 19:26:53 -04:00