Commit graph

817 commits

Author SHA1 Message Date
Senya
0b358a6c44 Merge pull request #81 from SuperTux88/relay-likes-for-comments
Relay likes for comments
2017-09-23 00:33:11 +03:00
Benjamin Neff
0801d4b260
Update documentation to describe the behavior with the root entity 2017-09-22 21:45:52 +02:00
Benjamin Neff
61c00b3596
Use top parent when relaying relayables of relayables 2017-09-22 21:30:09 +02:00
Benjamin Neff
b25e21f980
Add method to get the top entity to RelatedEntity 2017-09-22 21:30:09 +02:00
Senya
cddb4610c0 Merge pull request #79 from SuperTux88/validate-public-flag-for-profiles
Allow to receive non-public profiles without private data
2017-09-22 14:11:58 +03:00
Benjamin Neff
3b3f6ad589
Fetch linked entities before saving 2017-09-21 02:53:33 +02:00
Benjamin Neff
86ba5b619b
Fix overly strict dependencies 2017-09-16 04:36:29 +02:00
Benjamin Neff
259745f41e
Bump dependency gems and update gemfiles 2017-09-16 03:31:07 +02:00
Benjamin Neff
5bf0087e0a
Bump rubocop
... and update the config and code for the new version.
2017-09-16 03:23:41 +02:00
Benjamin Neff
6255260996
Bump simplecov 2017-09-16 02:56:17 +02:00
Benjamin Neff
ca93f0a30b
Bump pry-byebug 2017-09-16 02:55:44 +02:00
Benjamin Neff
f8711e9c05
Bump rails 2017-09-16 02:55:03 +02:00
Benjamin Neff
3ce0a5eb2d
Bump rake 2017-09-16 02:54:42 +02:00
Benjamin Neff
c32406f279
Merge pull request #86 from denschub/diaspora-id-regex
Tighten the validation of diaspora* IDs
2017-09-13 13:15:44 +02:00
Dennis Schubert
f9b24b15f8
Disallow diaspora* IDs longer than 255 characters 2017-09-13 12:35:08 +02:00
Dennis Schubert
b83619cd2c
Disallow uppercased usernames and hostnames
Drive-by: replaced some of the parts by named POSIX character classes to
make the regex easier to read.
2017-09-13 12:05:49 +02:00
Dennis Schubert
4f87ab1582
Add tests for not validating uppercase characters 2017-09-13 11:51:34 +02:00
Dennis Schubert
c73e0eb14b
Merge branch 'master' into develop 2017-09-13 08:09:05 +02:00
Benjamin Neff
4f48f43455
Add author parameter for diaspora:// URLs to the documentation 2017-09-13 08:08:58 +02:00
Dennis Schubert
0a358c8724
Merge pull request #85 from SuperTux88/add-author-to-diaspora-url
Add author to diaspora:// URL
2017-09-13 08:08:35 +02:00
Benjamin Neff
67a2ba7449
Add author parameter for diaspora:// URLs to the documentation 2017-09-12 23:46:43 +02:00
Benjamin Neff
b6ec405e55
Add author to the diaspora:// URL parser 2017-09-12 23:46:42 +02:00
Benjamin Neff
e663a65c7e
Remove not_nil for diaspora IDs from validators
The diaspora ID validator now is not nil by default.

Also:
* mark root_author as optional for reshares.
* make author for profiles mandatory (I don't remember why this was
optional, we never generate a profile without author and we wouldn't
receive a profile without author anyway, because we validate that the
author is the sender).
* refactor validator specs for diaspora IDs
2017-09-12 23:11:05 +02:00
Benjamin Neff
5e3f510a88
Refactor diaspora ID regex to be used in diaspora:// URL regex 2017-09-12 23:11:05 +02:00
Benjamin Neff
92dc8b0277
Fix GUID regex 2017-09-12 21:24:50 +02:00
Benjamin Neff
b968e37357
Improve documentation for profile entity 2017-09-11 21:38:46 +02:00
Benjamin Neff
834d358eca
Allow to receive non-public profiles without private data 2017-09-11 21:38:46 +02:00
cmrd Senya
0b07b36017
Merge pull request #74 from SuperTux88/parse-rfc-7033-webfinger
Parse RFC 7033 webfinger
2017-09-10 16:30:38 +03:00
Benjamin Neff
f24dd528ee
Add option for RFC 7033 WebFinger http fallback 2017-09-10 03:08:13 +02:00
Benjamin Neff
80e4844654
Update documentation for RFC 7033 WebFinger 2017-09-10 03:08:12 +02:00
Benjamin Neff
3e7e649025
Fetch RFC 7033 WebFinger with fallback to legacy WebFinger 2017-09-10 03:08:12 +02:00
Dennis Schubert
1d195a0401
Merge branch 'master' into develop 2017-09-09 15:05:52 +02:00
Benjamin Neff
40ad6546bc
Add documentation for the diaspora:// URI scheme 2017-09-09 15:05:39 +02:00
Dennis Schubert
ad21e21669
Merge pull request #78 from SuperTux88/fetch-linked-posts
Fetch posts linked with diaspora:// URLs
2017-09-09 15:01:42 +02:00
Benjamin Neff
6852f9ca36
Add support to parse RFC 7033 WebFinger JSON
Also:
* Fix date format when generating JRD document
* Sort elements always with the same order
2017-09-05 22:56:22 +02:00
Benjamin Neff
b1a5c13a08
Add documentation for the diaspora:// URI scheme 2017-09-04 23:48:31 +02:00
Benjamin Neff
add5e16abf
Fetch linked entities from received entities with text 2017-09-04 23:48:31 +02:00
Benjamin Neff
0b927290e3
Add DiasporaUrlParser to extract diaspora:// URLs from texts 2017-09-04 23:48:31 +02:00
Benjamin Neff
457f06d1da
Extract regex for entity names 2017-09-04 23:48:31 +02:00
Benjamin Neff
faf48e1dd4
Extract allowed chars for GUIDs to constant
Also: disallow special chars at the end of a GUID
2017-09-04 23:48:29 +02:00
cmrd Senya
9d72c9855a
Merge pull request #76 from SuperTux88/photo-height-width-optional
Make height and width optional for photos
2017-09-05 00:40:25 +03:00
Benjamin Neff
b2eda1d812
Remove nilable parameter from guid rule and use OptionalAwareValidator 2017-09-03 20:10:25 +02:00
Benjamin Neff
860aec96b9
Make height and width optional for photos 2017-09-03 20:10:24 +02:00
Benjamin Neff
6f936caddf
Add abstract OptionalAwareValidator class
This improves validation of optional fields and respects the `optional`
option of properties
2017-09-03 20:10:24 +02:00
Benjamin Neff
9081328d51
Merge pull request #77 from SuperTux88/handle-discovery-errors
Improve error handling for discovery errors
2017-09-02 04:21:07 +02:00
Benjamin Neff
458d0f2215
Always raise a DiscoveryError when something with the discovery fails 2017-09-01 01:51:36 +02:00
Benjamin Neff
53fc77ac5d
Inherit InvalidDocument and InvalidData from DiscoveryError 2017-09-01 01:21:52 +02:00
Benjamin Neff
8149421287
Fix type in CONTRIBUTING.md 2017-08-27 02:45:23 +02:00
Benjamin Neff
977849e649
Merge pull request #73 from cmrd-senya/reshare-nil-root
Allow reshares with no root
2017-08-26 03:57:30 +02:00
cmrd Senya
69996319e1
Minor change PhotoValidator#status_message_guid spec
Use new "a nilable guid validator" shared behavior
2017-08-25 10:41:22 +03:00