Commit graph

444 commits

Author SHA1 Message Date
Benjamin Neff
6b8e8a70a0
Remove URL from hcard, it's not used anymore 2021-11-27 03:56:52 +01:00
Benjamin Neff
d5107f5678
Remove legacy Webfinger handling 2021-11-27 03:56:52 +01:00
Benjamin Neff
3861eb9fef
Merge branch '0.2.x' into develop 2021-10-24 21:14:25 +02:00
Benjamin Neff
4d5d9f4194
Release version 0.2.7 2021-10-24 20:48:59 +02:00
Benjamin Neff
d84d68d066
Validate that remote_photo_path on Photo entity is an URL with path
closes #119
2021-10-24 20:10:43 +02:00
Benjamin Neff
0d12770262
Add remote_photo_path to AccountMigration entity
This can be set to the URL on the new pod when photos were
migrated/imported, so other pods can adjust the `remote_photo_path` of
the photos of the old account.
2021-10-24 20:08:04 +02:00
Benjamin Neff
85e12cea93
Only parse each nested element name once
A child elements should only appear once or it is part of a
nested array (photos, poll answers). So each element name only needs to
be parsed once, because the way `parse_array_from_node` works is, that
it already parses the full array with one call, so calling it multiple
times again parses the full array a second time.

closes #118
2021-10-24 19:57:48 +02:00
Benjamin Neff
162c2cf21b
Don't add author_signature if author also is parent author
This fully completes #64
2021-10-23 01:26:58 +02:00
Benjamin Neff
2286022f67
Fix deprecation warning for Bundler.with_clean_env 2021-06-30 04:59:11 +02:00
Benjamin Neff
cb138d6458
Bump rubocop, apply new cops and fix deprecations 2021-06-30 03:26:46 +02:00
Benjamin Neff
7fd94438a3
Merge pull request #114 from SuperTux88/remove-old-federation
Remove old federation
2021-06-30 00:57:24 +02:00
Benjamin Neff
975835a3b6
Fix missing FaradayMiddleware::RedirectLimitReached 2021-06-29 02:53:06 +02:00
Benjamin Neff
3fcea8b188
Remove parent_author_signature from relayables
Closes #64
2019-10-30 17:49:46 +01:00
Benjamin Neff
1238fe0384
Remove old property-name mappings and cleanup xml_name functionality
Closes #29
2019-10-30 17:49:46 +01:00
Benjamin Neff
edfcc7886d
Remove old Request entity
Closes #32
2019-10-30 17:49:45 +01:00
Benjamin Neff
a082bcebff
Remove old SignedRetraction and RelayableRetraction
Closes #27
2019-10-30 17:49:45 +01:00
Benjamin Neff
0ccd15cd53
Remove legacy xml unwrap code
Closes #28
2019-10-30 17:49:45 +01:00
Benjamin Neff
0163963849
Remove old Slap and EncryptedSlap and cleanup legacy receive
Closes #30
2019-10-30 17:49:45 +01:00
Benjamin Neff
e4f56e06bb
Bump rubocop 2019-10-21 03:11:13 +02:00
Benjamin Neff
1dfe57ea7e
Add frozen_string_literal to all files
and remove redundant freezes
2019-10-21 03:11:12 +02:00
Benjamin Neff
68df3cf555
Remove support for ruby 2.1, 2.2, 2.3 and 2.4, add 2.6 instead
all older than 2.3 are already EOL and 2.4 will be EOL soon and the next
diaspora major version will already depend on newer versions, so we can
already remove it now.
2019-10-21 03:11:12 +02:00
Benjamin Neff
4b4375cf78
Remove rails 4 support 2019-10-21 03:11:12 +02:00
Benjamin Neff
5fffefd3b6
Release version 0.2.6 2019-04-28 12:37:19 +02:00
Senya
e12736ffe8
Entities JSON schema: width & height are optional 2019-04-28 12:53:39 +03:00
Benjamin Neff
6c8e8e5418
Release version 0.2.5 2018-10-05 22:19:37 +02:00
Benjamin Neff
263b9dd946
Merge pull request #108 from SuperTux88/allow-web-diaspora-urls
Include web+ prefix in diaspora:// URL parsing
2018-10-05 21:46:44 +02:00
Benjamin Neff
a69b498bb0
Merge pull request #107 from diaspora/schema-reshare-patch
federation_entities.json: reshare root is optional
2018-10-05 21:46:26 +02:00
Benjamin Neff
65905f7800
Include web+ prefix in diaspora:// URL parsing
This prevents creation of web+https://... URLs when replacing the
diaspora:// part.
2018-10-05 21:07:05 +02:00
Benjamin Neff
e0da26c7ee
Add "embed" entity
Fixes #93
2018-10-05 20:26:23 +02:00
Senya
655325b82c
federation_entities.json: reshare root is optional
root_author and root_guid are optional for the reshare
2018-10-05 12:48:04 +03:00
cmrd Senya
b4450d3383 json schema: fix misplaced "required" property 2018-07-16 00:06:05 +03:00
Benjamin Neff
12f32013db
Bump rubocop 2018-06-17 03:23:04 +02:00
Benjamin Neff
512fafbd60
Merge pull request #100 from SuperTux88/add-full_name
Add full_name to profile
2018-06-17 02:49:47 +02:00
Senya
b15e70f942
Update federation_entities.json
parent_type is mandatory for likes
2018-04-15 19:09:36 +03:00
Benjamin Neff
cce2c7fe31
Add full_name to profile
This is needed for diaspora/diaspora#3648
2018-04-09 00:58:20 +02:00
Benjamin Neff
4e73fd8ea3
Bump rubocop 2018-03-05 23:33:46 +01:00
Benjamin Neff
c1cd297811
Release version 0.2.4 2018-02-18 01:28:48 +01:00
Benjamin Neff
0257ba7e59
Merge pull request #94 from SuperTux88/editable-entities
Editable entities
2018-02-17 21:50:05 +01:00
Benjamin Neff
c0b141786e
Use optional flag for discovery entities instead of default value 2018-02-14 01:50:39 +01:00
Benjamin Neff
b274cc3dad
Fix some validators for nil values
Using the real entities for the tests also uncovered some bugs where for
example empty strings are converted to nil and the validation wasn't
invalid in this case, but should be.
2018-02-14 01:50:39 +01:00
Benjamin Neff
32a49cc549
Get optional props from validated object
This is much easier and safer than "guessing" the class name based on
the validator name. That can cause a problem when another class with the
same name is found. The "guessing" was only added because we used
OpenStruct in the tests, but we shouldn't change the code only to make
tests run. I changed the tests to use the real entities, with
auto-validation disabled in the constructor, so we can test the
validator manually.
2018-02-14 01:37:20 +01:00
Benjamin Neff
4bf5f58ea7
Release version 0.2.3 2018-01-27 02:12:46 +01:00
Benjamin Neff
392f1f5a18
Fix relayable signatures for messages with invalid XML characters
Sometimes messages contain characters that are invalid for XML, but they
are filteres out before creating the XML, otherwise the property would
be empty in the XML.

But for relayables the value is also used for creating the signatures,
so we need to filter the invalid characters earlier, before calculating
the signature.
2018-01-25 01:52:34 +01:00
Benjamin Neff
63f1cbd70a
Add edited_at property to event messages 2018-01-23 03:12:38 +01:00
Benjamin Neff
057ebd69f0
Add edited_at property to the profile message
This is needed so we can make sure to not overwrite newer data by older
one, for example when there are two edits close together and the newer
arrives faster.
2018-01-23 03:12:26 +01:00
Benjamin Neff
8563855be1
Add edited_at property to entities with a text property 2018-01-22 04:26:29 +01:00
Benjamin Neff
f735edadc3
Merge pull request #92 from SuperTux88/update-gems
Update gems
2018-01-19 02:10:07 +01:00
Benjamin Neff
b0cec50172
Bump fabrication 2018-01-18 04:19:09 +01:00
Benjamin Neff
98ff15591e
Bump rubocop 2018-01-18 04:00:20 +01:00
Benjamin Neff
5e81760f30
Remove participants limit for conversations
The limit was added in 2012 to prevent spam, but since the participants
need to be a mutual contact with the author nowadays, I don't think it's
a spam problem anymore.

I also added a validation for the minimum count of the participants,
because a conversion without participants doesn't make much sense.
2018-01-18 02:50:04 +01:00