Jonne Haß
d443401361
Stabilize Diaspora::Federation::Entities.build.builds a comment with edited_at
...
closes #7994
2019-04-26 17:41:25 +02:00
Jonne Haß
a38a93523d
Stabilize Diaspora::Federation::Receive.comment.saves the signature data
2019-04-26 17:40:48 +02:00
Jonne Haß
e3c05b5620
Stabilize Diaspora::Federation::Receive.comment.saves the signature data
2019-04-26 15:56:09 +02:00
Jonne Haß
b1cc37e939
Avoid using sleep in the API specs
2019-04-26 13:40:43 +02:00
Jonne Haß
3f77507b15
make notifications controller spec stable
2019-04-26 12:26:26 +02:00
Dennis Schubert
97805e6602
Merge branch 'next-minor' into develop
2019-01-13 02:17:22 +01:00
Benjamin Neff
2894984f57
Fix order of posts on tags-stream for tags including 'activity'
...
closes #7959
2019-01-13 02:17:15 +01:00
Hank Grabowski
ce01946eb0
Fixed new pronto warnings after develop branch sync
2018-12-30 17:04:35 -05:00
Hank Grabowski
e127502be5
API Branch Final Cleanup Before PR
2018-12-30 22:33:04 +01:00
Hank Grabowski
9c730fc0f3
OpenID Scopes and Security updates
2018-12-30 22:33:04 +01:00
Hank Grabowski
a53495c9aa
API Paging library and used in appropriate controllers with full tests
2018-12-30 22:33:04 +01:00
Hank Grabowski
16bf5d8130
Add Poll Voting Method to Interactions Endpoint
2018-12-30 22:33:04 +01:00
Hank Grabowski
02cf6a9eb2
Photos API Endpoint and unit tests complete
2018-12-30 22:33:04 +01:00
Hank Grabowski
7dba616e4e
Search API Endpoint and unit test complete
2018-12-30 22:33:04 +01:00
Hank Grabowski
2f432eb560
Users Controller and unit tests complete
2018-12-30 22:33:04 +01:00
Hank Grabowski
09c13fdf67
Notifications API Endpoint and unit test complete
2018-12-30 22:33:04 +01:00
Hank Grabowski
803abba5c1
Interactions API endpoint complete with full tests
2018-12-30 22:33:04 +01:00
HankG
0f4789a5cb
Contacts API Feature complete with full tests
2018-12-30 22:33:04 +01:00
Hank Grabowski
7ae36de2cf
Tags API Endpoint complete with full tests
2018-12-30 22:33:04 +01:00
Hank Grabowski
db7fe69ce4
Aspects API Endpoint complete with full tests
2018-12-30 22:31:33 +01:00
Hank Grabowski
173461ac3d
Reshares API Endpoint complete with full unit tests
2018-12-30 22:31:33 +01:00
Hank Grabowski
45c8277f2f
Conversations API Test Removed 'convo' Abbreviations
2018-12-30 22:31:33 +01:00
HankG
4923338bcf
Conversations API Endpoint Feature complete with full tests
2018-12-30 22:31:33 +01:00
HankG
48b1428c57
Streams Controller API feature complete and fully tested
2018-12-30 22:31:33 +01:00
Hank Grabowski
bb2261b47d
Posts API Endpoint feature complete with full unit tests
2018-12-30 22:31:33 +01:00
Hank Grabowski
f64a8e04ed
Comments API Endpoint complete with full unit tests
2018-12-30 22:31:33 +01:00
Hank Grabowski
7ee9565a04
Likes API endpoint complete
2018-12-30 22:31:33 +01:00
Frank Rousseau
758c673f68
Fix post controller test
2018-12-30 22:31:33 +01:00
Frank Rousseau
5326ddf6c3
Adapt error formatting to documentation
2018-12-30 22:31:33 +01:00
Frank Rousseau
f8969ddfeb
Make Post API match specs
...
https://diaspora.github.io/api-documentation/routes/posts.html
2018-12-30 22:31:33 +01:00
Frank Rousseau
ec47fc67ab
Make the comment API match the API specs
2018-12-30 22:31:33 +01:00
Frank Rousseau
ffd5f575bc
Make API likes controller match specs
2018-12-30 22:31:33 +01:00
Frank Rousseau
f6b57384e7
Changes to use V1 API version instead of V0
2018-12-30 22:31:33 +01:00
Frank Rousseau
b4dc13f1ce
Fix code styles
2018-12-30 22:31:33 +01:00
Frank Rousseau
064beb6f4e
Adapt API tests to recent changes
2018-12-30 22:31:33 +01:00
Frank Rousseau
72a3b92b50
Make syntax compliant with the pronto configuration
2018-12-30 22:31:33 +01:00
Frank Rousseau
2a8c0ddd51
Follow official specs
2018-12-30 22:31:33 +01:00
Frank Rousseau
13e2841f13
Merge conv deletion and visibility deletion
2018-12-30 22:31:33 +01:00
Frank Rousseau
f9e0dee2dc
Make messages API conformed with docs
2018-12-30 22:31:33 +01:00
Frank Rousseau
5040363f7a
Make conversation API data format ok with docs
...
* Base the API requesting on GUID instead of ID
* Include read field
* Do not include messages in conversation results
2018-12-30 22:31:33 +01:00
Frank Rousseau
2be3e9eaf3
Fix styles for some API controllers
...
* Comments
* Likes
* Streams
2018-12-30 22:31:33 +01:00
Frank Rousseau
fa53656b3b
Add conversation visibilities API controller
2018-12-30 22:31:33 +01:00
Frank Rousseau
f8ba88408b
Add messages API controller
2018-12-30 22:31:33 +01:00
Frank Rousseau
559f370116
Add conversations API controller
2018-12-30 22:31:33 +01:00
Frank Rousseau
b37c14ce0e
Add service for conversations
2018-12-30 22:31:33 +01:00
Frank Rousseau
c45b785370
Add conversation presenter
2018-12-30 22:31:33 +01:00
theworldbright
6cad0a965a
Add likes API route
2018-12-30 22:31:33 +01:00
theworldbright
41750e38da
Add streams API routes
2018-12-30 22:31:33 +01:00
theworldbright
c9ba1ee197
Combine Comment index with Post show API route
2018-12-30 22:31:33 +01:00
theworldbright
47dd44ff39
Add comments API routes
2018-12-30 22:31:33 +01:00
theworldbright
552d3efb29
Add posts API routes
2018-12-30 22:31:33 +01:00
Benjamin Neff
b30c4e4e97
Merge branch 'next-minor' into develop
2018-11-17 21:08:23 +01:00
Benjamin Neff
6fb1e1f524
Bump jwt
2018-11-17 21:05:42 +01:00
Benjamin Neff
de5e22a543
Bump faraday
2018-11-17 21:04:37 +01:00
Benjamin Neff
652b0064e6
Merge branch 'next-minor' into develop
2018-11-08 20:58:35 +01:00
Benjamin Neff
25a9f5d5d7
Merge branch 'master' into next-minor
2018-11-08 20:58:22 +01:00
Benjamin Neff
32cd764786
Fix XSS via OpenGraph on mobile
2018-11-08 20:41:50 +01:00
Dennis Schubert
cee30c36a0
Merge branch 'next-minor' into develop
2018-11-08 05:06:53 +01:00
Hank Grabowski
cab0e0100b
7841 Post Unlike sets status icon correctly
...
closes #7882
fixes #7841
2018-11-08 05:06:34 +01:00
Benjamin Neff
0c2cd2ef1b
Merge branch 'next-minor' into develop
2018-11-04 03:07:50 +01:00
Benjamin Neff
2c56e447ed
Ignore invalid URLs for camo
...
When people only write `https://` as image URL, this would fail with
`Addressable::URI::InvalidURIError: Absolute URI missing hierarchical segment: 'https://'`.
closes #7922
2018-11-04 03:06:21 +01:00
Dennis Schubert
9bab794ea4
Merge branch 'next-minor' into develop
2018-10-08 02:50:36 +02:00
Benjamin Neff
fc6893d4fc
Remove facebook integration
...
Facebook removed the API and facebook integration is broken now, so lets
remove it.
closes #7874
2018-10-08 02:50:25 +02:00
Dennis Schubert
fe5c95e0ba
Merge branch 'next-minor' into develop
2018-09-30 21:44:49 +02:00
Benjamin Neff
44452749bc
Don't depend on the database content when loading the tests
...
closes #7872
2018-09-30 21:44:44 +02:00
Dennis Schubert
883eb54ecf
Merge branch 'next-minor' into develop
2018-09-30 18:00:57 +02:00
Benjamin Neff
d765b34018
Make sure URLs are encoded before sending them to camo
...
Otherwise camo crashes with:
TypeError [ERR_UNESCAPED_CHARACTERS]: Request path contains unescaped characters
closes #7871
2018-09-30 18:00:49 +02:00
Benjamin Neff
c9f65332de
Merge branch 'next-minor' into develop
2018-09-06 02:33:43 +02:00
Dennis Schubert
65a2b8da12
Include PostsHelper in NotifierHelper
...
Fixes #7852
closes #7853
2018-09-06 02:33:33 +02:00
Benjamin Neff
cd30a2814d
Bump json-jwt and openid_connect
...
Fixes CVE-2018-1000539
2018-09-05 03:18:59 +02:00
Benjamin Neff
08e108d3d8
Fix comment notification subject for posts without text
...
Fixes #7854
2018-09-05 03:17:58 +02:00
Dennis Schubert
60b5443850
Merge pull request #7857 from SuperTux88/fix-comment-title-without-text
...
Fix comment notification subject for posts without text
2018-09-05 03:13:45 +02:00
Benjamin Neff
4c4c3d8bf0
Bump json-jwt and openid_connect
...
Fixes CVE-2018-1000539
2018-09-05 02:19:34 +02:00
Benjamin Neff
2eb17e109b
Fix comment notification subject for posts without text
...
Fixes #7854
2018-09-05 01:32:36 +02:00
Benjamin Neff
80bc90afa9
Fix preview with uploaded photos
2018-07-17 20:48:37 +02:00
Benjamin Neff
ea15403d57
Merge pull request #7655 from Flaburgan/6721-fix-upload-progress-bar
...
Fix multiple photos upload progress bar
2018-07-11 01:37:02 +02:00
Benjamin Neff
dcbdb69e22
Merge branch 'next-minor' into develop
2018-07-11 01:35:50 +02:00
cmrd Senya
6f812a5b8f
Add LinksController
...
LinksController redirects requests for provided diaspora:// links to
respective entities urls.
2018-07-11 01:24:28 +02:00
flaburgan
af02d01d41
Fix progress when uploading multiple photo at the same time
2018-07-09 17:48:30 +02:00
Benjamin Neff
f9a59f2ff0
Merge branch 'next-minor' into develop
2018-06-20 00:50:34 +02:00
HankG
5a8bdc1e71
Facebook plugin always appends (via D* post URL) to cross-posts
...
fixes #7770
closes #7774
2018-06-20 00:47:12 +02:00
Benjamin Neff
f3d2a54050
Merge branch 'next-minor' into develop
2018-06-16 04:36:13 +02:00
cmrd Senya
87968284ba
Support fetching StatusMessage by Poll guid
...
When public fetch is requested with Poll guid, return parent
StatusMessage for it, which includes the Poll in its turn.
closes #7815
2018-06-16 04:36:05 +02:00
Benjamin Neff
0cb212e6cb
Merge branch 'next-minor' into develop
2018-05-16 00:54:46 +02:00
cmrd Senya
a3378ae744
Account merging: handle duplicates for TagFollowing
...
I missed it in #7803
closes #7807
2018-05-16 00:54:16 +02:00
Benjamin Neff
2a60cb30a1
Merge branch 'next-minor' into develop
2018-05-03 21:33:10 +02:00
cmrd Senya
cb294fd3f4
Add completed_at to account_migrations
...
Use completed_at datetime field as an indication of a performed migration
closes #7805
2018-05-03 21:31:29 +02:00
cmrd Senya
e9f6dbdffd
Add unique index to poll participations on author_id and poll_id
...
Previously we had only a Rails validation which ensured poll participation
uniqueness but this adds uniqueness control to the database level, so that
uniqueness is guaranteed even when changing data with avoiding Rails
validations.
closes #7798
2018-05-03 21:28:38 +02:00
Benjamin Neff
22d1ad995c
Merge branch 'next-minor' into develop
2018-04-30 22:54:33 +02:00
cmrd Senya
8680b24a2e
Account merging support
...
Adds support for merging accounts with account migration by eliminating
duplicate data in favor of the target user's data.
closes #7803
2018-04-30 22:06:34 +02:00
Dennis Schubert
74bac8c495
Merge branch 'next-minor' into develop
2018-04-23 20:33:20 +02:00
HankG
211e5cd1bc
Bugfix 7714 twitter char overflow
...
closes #7791
2018-04-23 20:33:07 +02:00
Benjamin Neff
8daf934c45
Remove backporting of mention syntax
...
fixes #7276 , #7392 and #7640
2018-04-15 15:49:23 +02:00
Benjamin Neff
c1ebc4d338
Merge branch 'next-minor' into develop
2018-04-12 02:49:11 +02:00
Benjamin Neff
9a661177f1
Replace rails-assets-perfect-scrollbar with rails-assets-utatti-perfect-scrollbar
...
closes #7772
2018-04-12 02:44:43 +02:00
Benjamin Neff
0e526f9221
Bump jasmine
...
Disable random tests for now, many tests fail when this is true (which
is now default)
2018-04-12 02:41:56 +02:00
Benjamin Neff
b8094544a0
Bump faraday
2018-04-12 02:41:54 +02:00
Benjamin Neff
66175f6908
Merge branch 'next-minor' into develop
2018-04-12 01:56:07 +02:00
Benjamin Neff
686310fb8e
Simplify /podmin redirect
...
Some podmins were confuse how they can disable this redirect and I think
the rule with two users can actually be a little confusing. I think the
main goal of this page to give the podmin a little start and I think
after they configured everything, the pod works and they found the link
to the wiki to make themself an admin, it is OK to remove the redirect.
Also it's bad for single-user pods where this page always stays active,
even if they are an admin, but have only one user. It's more useful for
single-user pods to have the login on the home page.
closes #7783
2018-04-12 01:55:46 +02:00
Steffen van Bergerem
4aec9fbb42
Fix mention syntax backport for two immediately consecutive mentions
...
Fixes #7695 .
closes #7777
2018-04-12 01:44:44 +02:00
Steffen van Bergerem
01ae004518
Make public stream accessible for logged out users
...
Fixes #6564 .
closes #7775
2018-04-12 01:42:17 +02:00
Benjamin Neff
7d6623d069
Remove contacts page on profiles
...
closes #7769
2018-04-12 01:40:49 +02:00
Benjamin Neff
4fa92c1823
Remove flag for contacts visible to each other
...
This feature only worked on the same pod and was more confusing than
useful.
2018-04-12 01:39:11 +02:00
Benjamin Neff
89f7f97294
Merge branch 'next-minor' into develop
2018-04-10 01:58:07 +02:00
Benjamin Neff
9b83df9646
Merge branch 'master' into next-minor
2018-04-10 01:57:56 +02:00
Benjamin Neff
f4ea138a64
Don't return a SafeString after truncate
2018-04-10 01:54:29 +02:00
Dennis Schubert
ae17248b2e
Merge pull request #7734 from Fensterbank/client-side-picture-resize
...
Resize images on client-side before uploading
2018-04-02 10:38:51 +02:00
cmrd Senya
e0e40f73c3
Spec for post creation bad aspects_ids issue
2018-03-25 08:28:59 +02:00
kas70
40fc175d6e
only include mutual sharing contacts in conversations form on contacts page
...
fixes #7377
2018-03-22 23:15:24 +01:00
Frédéric Bolvin
6d55b15604
Resize images on client-side before uploading
2018-03-11 11:20:16 +01:00
Dennis Schubert
3643612b1c
Back to Top: Make sure to re-check the visibility after the scrolling is done
...
If a user scrolls just below the 1000px threshold and clicks the back-to-top button within 250ms, we'll never hide the button as the scroll event gets throttled away. That's rather inconvenient.
closes #7729
2018-03-07 00:39:36 +01:00
Benjamin Neff
4e5ee36675
Keep order of profile tags
...
closes #7724
2018-02-27 00:48:42 +01:00
Benjamin Neff
4cd8de5327
Refactor taggable tests to use let
2018-02-27 00:48:08 +01:00
Benjamin Neff
beeb073dbe
Fix followed tags posts in stream for posts with multiple tags
...
When there were posts with many followed tags they were returned
multiple times, resulting in less than 15 unique posts. That resulted in
some posts to be missed in the stream.
Fixes #4503
closes #7715
2018-02-25 04:35:49 +01:00
Benjamin Neff
f0aca56c8f
Don't retry for PublicKeyNotFound
...
We only return `nil` when we know the person, but don't know the key or
the key is invalid, so it doesn't make sense to retry in this case. When
the person isn't known and can't be fetched we raise a DiscoveryError
which will be retried.
Also the errors were moved to the `Signable` module in the last release.
closes #7717
2018-02-25 04:34:04 +01:00
Benjamin Neff
602a1dcd55
Store edited_at for relayables in additional_data
...
closes #7718
2018-02-25 04:33:03 +01:00
Benjamin Neff
0b4b3515a5
Start sending updated_at timestamp as edited_at for profiles
...
This can be used in later diaspora versions to order the profile updates
so we don't overwrite a newer profile with older data.
2018-02-25 04:32:19 +01:00
Benjamin Neff
c89b2ad809
Prevent duplicate mention notifications when the post is received twice
...
closes #7721
2018-02-22 00:49:21 +01:00
cmrd Senya
b32c844314
Support for embedding HTML5 media links
...
Use markdown-it-html5-embed plugin so user can embed audio and
video using the markdown link syntax []() in the HTML5 way.
2018-02-17 19:21:10 +01:00
Benjamin Neff
5e157dc9c3
Send participation after receiving a public post
...
This is to let the author of the post know, that this pod is interested
in updates about this post.
The sending user is only used to verify that the participation was sent
from this pod, but lets use an admin/podmin account if available.
closes #7708
2018-02-01 23:40:51 +01:00
Benjamin Neff
6c5b8b73af
Fix post_message for posts without text
...
fixes #7700
closes #7706
2018-02-01 23:39:18 +01:00
Benjamin Neff
a32cac06ab
Retry Contact messages 20 time (about two weeks)
...
closes #7705
2018-02-01 23:37:53 +01:00
Benjamin Neff
b9787cc632
Start sending the blocking flag
2018-02-01 23:35:35 +01:00
Benjamin Neff
746ff52256
Fix mention in #newhere message when invited by another person
...
fixes #7701
closes #7702
2018-02-01 23:35:04 +01:00
Brad Koehn
1a3c16eb6e
update to support 280 character Twitter
...
closes #7694
closes #7662
fixes #7661
2018-01-09 00:05:33 +01:00
Janakas
0347507b20
Delete archive files when closing an account
...
closes #7684
2018-01-08 21:15:41 +01:00
Janakas
d4e5d13a8f
Remove old export archives after 2 weeks
...
Fixes #5727
2018-01-08 21:14:06 +01:00
Benjamin Neff
c135ace407
Fix notifications when people remove their birthday date
...
Some people may remove their birthday date after the notification was
sent, which then breaks the notification page for other users. Let's
just display the date when the notification was created, and not display
the users updated birthday date. When users update from date A to B it
always looks weird anyway, when we display the same new date B twice on
different days, or display two different dates for the same user.
We could remove notifications when users change or remove their
birthday, but that would be way more complex and also we usually don't
remove notifications (not even for deleted posts).
Fixes #7689
closes #7691
2018-01-05 01:50:11 +01:00
Benjamin Neff
e0eb76eb2a
Remove aspect_ids parameter from publisher
...
closes #7683
2017-12-25 20:54:10 +01:00
Rete2
fc33a2ac5d
Create birthday notification and mailer
...
closes #7624
fixes #1649
2017-12-18 04:34:35 +01:00
Benjamin Neff
70410d1691
Ignore invalid diaspora:// links
...
Fixes #7651
closes #7652
2017-10-27 02:26:52 +02:00
cmrd Senya
ad025850ce
Forbid user destruction
2017-10-17 01:38:36 +02:00
cmrd Senya
973e9d98c6
Raise sensible error message when user is missing
...
That's for the case when podmin has messed up the database
2017-10-17 01:38:36 +02:00
cmrd Senya
f212b51f7f
Check for user existence on aspect membership destruction
2017-10-17 01:38:36 +02:00
Benjamin Neff
a36d22d72b
Handle duplicate account migrations
...
closes #7641
2017-10-17 01:36:25 +02:00
Benjamin Neff
6d5647ec11
Handle duplicate account deletions
2017-10-17 01:32:14 +02:00
Benjamin Neff
b920ddbff5
Move special and ignored associations to tests
2017-10-17 01:32:14 +02:00
Benjamin Neff
f704f30572
Remove conversation visibilities with standard person associations
2017-10-17 01:32:14 +02:00
Benjamin Neff
f4902421ea
Destroy user and person associations in batches
2017-10-17 01:32:14 +02:00
Benjamin Neff
fd36517dee
Limit the number of parallel exports that are allowed to run
...
closes #7629
2017-09-28 23:11:46 +02:00
Benjamin Neff
3fafcd9307
The diaspora ID validator now validates if it is lowercase
...
Relaying relayables will fail with non-lowercase authors.
closes #7625
2017-09-28 23:08:41 +02:00
Benjamin Neff
84b89d5594
Relay likes for comments
2017-09-28 23:04:35 +02:00
Benjamin Neff
5f5d8c5e13
Replace diaspora:// links in the text
2017-09-28 23:04:35 +02:00
Benjamin Neff
4a994b0a48
Creates references for linked posts after create
2017-09-28 23:04:34 +02:00
Benjamin Neff
c82e891c03
Add reference source and target behaviour
2017-09-28 23:04:34 +02:00
Benjamin Neff
28d3271933
Create refereces model
2017-09-28 23:04:34 +02:00
Benjamin Neff
35711606e4
Remove public and provider_display_name from reshares
2017-09-28 23:04:34 +02:00
Benjamin Neff
95fbd3fc66
Don't change the filename of the export everytime the user is touched
...
closes #7622
2017-09-28 03:28:15 +02:00
Benjamin Neff
ac39e920c8
Add camo to NodeInfo
...
closes #7617
2017-09-28 03:20:31 +02:00
cmrd Senya
c6ed850a85
Memory usage optimization for archive export
...
- Removed posts and non contacts from other's data
- Collections are exported in batches to lower memory footprint
- In base exporters create User object instead of keeping instance because it caches all associations
closes #7627
2017-09-26 04:07:18 +02:00
cmrd Senya
ea57fc5d25
Fix mistyped remote person in dispatcher spec
2017-09-26 04:06:43 +02:00
cmrd Senya
9f0b74ebbb
Memory usage test for archive export
...
It is not included into the main test suite, because it has :performance tag.
One can run this test using command:
$ bin/rspec --tag performance spec/integration/export/memory_usage_spec.rb
This test creates additional fixtures set to speed up repeated runs.
2017-09-26 04:06:43 +02:00
cmrd Senya
265a7ee253
Don't force fixtures rebuild on each rspec run
...
Main purpose of fixtures for us is to speed up test runs. Rebuilding
fixtures each run makes them pointless. They will be rebuilt automatically
if some of "files_to_check" are changed, so we're protected from the case
when fixtures are outdated and don't load properly.
2017-09-26 04:06:43 +02:00
cmrd Senya
9ee9dbe969
Fix local migration run without old private key
...
It was possible to run migration locally without providing old private
key. This way migration was performed but not dispatched, which obviously
leads to desynchronization of the federation state so let's validate sender
before performing any actual actions.
closes #7558
2017-09-26 04:06:16 +02:00
Benjamin Neff
655fe2a912
Cleanup invalid polls without status message
...
closes #7614
2017-09-18 03:24:52 +02:00
Benjamin Neff
e82690963d
Add # frozen_string_literal: true to all files
2017-09-17 19:29:15 +02:00
Benjamin Neff
44ebc7375a
Remove unused spec-doc.rb
...
closes #7594
2017-09-17 19:27:47 +02:00
Steffen van Bergerem
b77ecd482a
Replace aspect_membership_dropdown with aspect-membership-dropdown
2017-08-31 02:44:54 +02:00
Steffen van Bergerem
473cc2518b
Replace comment_box with comment-box
2017-08-31 02:44:53 +02:00
Steffen van Bergerem
7729635485
Replace publisher_textarea_wrapper with publisher-textarea-wrapper
2017-08-31 02:44:53 +02:00
Steffen van Bergerem
caeaf23d4b
Replace aspect_dropdown with aspect-dropdown
2017-08-31 02:44:53 +02:00
Benjamin Neff
e31c5ff4dc
Handle unauthenticated users for likes/comments of private posts
...
closes #7583
2017-08-29 12:55:03 +02:00
Benjamin Neff
350e24863f
Allow to load likes and reshares without login
2017-08-29 12:35:48 +02:00
Steffen van Bergerem
d130697ce2
Use Bootstrap 3 progress-bar for polls
...
closes #7600
2017-08-29 02:17:32 +02:00
Steffen van Bergerem
02d9d350d9
Move person extension for prefills to conversations form view
...
closes #7599
2017-08-29 02:13:57 +02:00
Steffen van Bergerem
48630b3a04
Fix conversation recipient prefill on contacts page
...
Use the already available contacts data for the prefill
2017-08-29 02:13:27 +02:00
Steffen van Bergerem
666ada44f1
Fix conversation recipient prefill on profile page
...
Fixes #7586
Use the already available data about the recipient for the prefill
2017-08-29 02:13:27 +02:00
Benjamin Neff
04035c3eb7
Allow to receive reshares without root
...
closes #7590
2017-08-29 02:06:08 +02:00
Benjamin Neff
163ffdb19b
Allow multiple reshares without root
...
Follow-up for #7578
Fixes #7587
2017-08-29 02:05:43 +02:00
Benjamin Neff
6d7ba96c4f
Remove locals option from render_template assertion
...
The locals option is only supported in ActionView::TestCase, so it is
ignored anyway (even worse, it disabled the complete assertion). I added
some more assertions to ensure the template is rendered with the correct
conversation.
closes #7588
2017-08-29 02:02:03 +02:00
Benjamin Neff
634c13f967
Remove wrong format: :json from status_messages_controller_spec
...
This was added by accident with the rails5 upgrade
2017-08-29 02:01:43 +02:00
Rete2
b556ad5211
show users vote in poll
...
closes #7550
2017-08-26 03:16:05 +02:00
Benjamin Neff
b040f85790
Remove root_guid from reshares when post is deleted
...
And cleanup old reshares with deleted root posts
closes #7578
2017-08-26 03:08:37 +02:00
Benjamin Neff
9240605ad5
Remove internet explorer version check
...
This was in all stack traces, which confused people ...
We currently only support IE11, so the version check was already old
again ...
When we break old browser versions, we don't check that for other
browsers. So older IE browser just break, like very other older browser
too.
closes #7557
2017-08-24 14:57:43 +02:00
Benjamin Neff
494518def1
Remove old message parameter from invite mail
...
closes #7571
2017-08-23 21:55:43 +02:00
ivan sebastian
3016280ef1
add jquery are you sure to comment form
...
closes #7530
2017-08-19 12:31:24 +02:00
Benjamin Neff
a01cc4dfcb
Merge branch 'release/0.7.0.0' into next-minor
2017-08-17 11:42:11 +02:00
Steffen van Bergerem
6ae2df2f9e
Fix missing timeagos for comments in the single post view
2017-08-17 11:40:49 +02:00
Benjamin Neff
685135474b
Merge branch 'release/0.7.0.0' into next-minor
2017-08-17 03:36:38 +02:00
Benjamin Neff
17949ffb4e
Match parameter with match_array to fix order mismatch
...
closes #7546
2017-08-17 03:27:46 +02:00
Steffen van Bergerem
4cb365a6f4
Fix missing photos in the single post view
...
closes #7545
2017-08-17 03:25:31 +02:00
Steffen van Bergerem
ff9591aee0
Use gender-neutral forms in comments and specs
...
closes #7544
2017-08-17 00:50:55 +02:00
Benjamin Neff
2d06b2865f
Handle when the block to delete doesn't exist
...
closes #7542
2017-08-16 20:40:11 +02:00
Benjamin Neff
a4d1ad160c
Fix stop ignoring from privacy settings and on mobile
...
Fixes #7541
2017-08-16 20:39:58 +02:00
cmrd Senya
45619cb153
Account migration model and message support
...
This commit introduces support for AccountMigration federation message
receive. It covers the cases when the new home pod for a user is remote
respective to the recepient pod of the message. It also allows to initiate
migration locally by a podmin from the rails console. This will give the
pods a possibility to understand the account migration event on the
federation level and thus future version which will implement migration
will be backward compatible with the pods starting from this commit.
2017-08-15 01:32:34 +03:00
cmrd Senya
e2979df65a
Add explicit mutual contact to test data
...
Add explicit mutual contact creation to the DataGenerator#generic_user_data
which is used in account deletion tests.
2017-08-14 19:15:54 +03:00
cmrd Senya
8f46073809
Stop disabling Send workers for each example
2017-08-14 13:54:38 +03:00
Benjamin Neff
a61d5739d4
Re-add disconnect_contacts in AccountDeleter
2017-08-14 04:52:00 +02:00
Benjamin Neff
1bd630d8a1
Merge pull request #7536 from SuperTux88/refactor-publisher-preview
...
Remove avatar, name, timestamp and interactions from publisher preview
2017-08-14 04:07:56 +02:00
Benjamin Neff
dd6cbbbb8e
Remove avatar, name, timestamp and interactions from publisher preview
...
This doesn't add any value in the post preview:
* Avatar is already at the left-hand side of the publisher
* Timestamp is always "less than a minute ago"
* Interactions are disabled in the preview anyway
We don't display these things in the comment preview either, they only
need space and don't add any value to the preview.
2017-08-14 02:21:28 +02:00
Benjamin Neff
172f80bcae
Handle unexpected errors while exporting userdata or photos
...
Otherwise the export stays soft-locked and the podmin needs to reset it
manually.
Fixes #6225
2017-08-14 00:36:52 +02:00
Benjamin Neff
7ffd7878d0
Use person for AccountDeleter
...
Also remove `disconnect_contacts` methods, because contacts are already
removed with aspects memberships in `before_destroy`.
2017-08-13 20:10:07 +02:00
Benjamin Neff
245ad9e04d
Remove diaspora_handle from AccountDeletions and add unique index
2017-08-13 19:43:04 +02:00
Steffen van Bergerem
54d70a87ed
Render mentions in comment previews correctly
2017-08-13 13:50:02 +02:00
flaburgan
21cdc6041d
Private profile
2017-08-13 04:53:53 +02:00
Steffen van Bergerem
04735ce9b0
Remove unused interactions method in post controller
2017-08-12 18:09:14 +02:00
Steffen van Bergerem
ad53a43f88
Remove unused post interactions parse method
2017-08-12 18:09:14 +02:00
Steffen van Bergerem
6b162110ce
Add 'show all' links to the SPV to fetch missing likes and reshares
2017-08-12 18:09:13 +02:00
Steffen van Bergerem
0bfc2fdd77
Load likes and reshares in the SPV via gon
2017-08-12 18:09:13 +02:00
Steffen van Bergerem
05d19e69ee
Move ExtremePostPresenter methods into PostPresenter, add #with_initial_interactions method
2017-08-12 18:09:12 +02:00
Benjamin Neff
dc92633dab
Merge pull request #7514 from SuperTux88/rails5
...
Upgrade to rails 5.1
2017-08-12 15:43:15 +02:00
Benjamin Neff
62cb1f99ce
Get current time before the test to be safer on MySQL
2017-08-12 15:39:27 +02:00
Benjamin Neff
ff3bd1f59b
Fix post service spec
...
* load records to array to check them
* test that only 15 people are returned
2017-08-12 15:39:25 +02:00
Benjamin Neff
33e3e3a14d
Fix person spec, use first(15) instead of slice(0..14)
2017-08-12 15:39:25 +02:00
Benjamin Neff
f4136d4559
Fix post spec
...
* don't use `double` for queries
* use `second` instead of `at()`.
2017-08-12 15:39:25 +02:00
Benjamin Neff
29ab4d8242
Fix querying spec, remove (Post)
2017-08-12 15:39:25 +02:00
Benjamin Neff
63e342e6c4
Use aspect_ids for visible_shareables
2017-08-12 15:39:25 +02:00
Benjamin Neff
d62772f9c0
Replace Fixnum with Integer
2017-08-12 15:39:25 +02:00
Benjamin Neff
ca8974d4a0
Use ActionDispatch::TestRequest in NotificationSerializer spec
2017-08-12 15:39:24 +02:00
Benjamin Neff
b61536ff06
Remove unused formatted_birthday from profile model
2017-08-12 15:39:24 +02:00
Benjamin Neff
77951c4657
Fix user removal spec
2017-08-12 15:39:24 +02:00
Benjamin Neff
385ab76077
Refactor OpenID specs to prevent duplicate client names
2017-08-12 15:39:24 +02:00
Benjamin Neff
621fdda197
New syntax for request specs
2017-08-12 15:39:23 +02:00
Benjamin Neff
7c9590a27c
Use .reload instead of (true) in specs
...
Or remove it where not needed
2017-08-12 15:39:23 +02:00
Benjamin Neff
2a6515fab9
Add params keyword to controller specs
2017-08-12 15:39:23 +02:00
Benjamin Neff
5335ee86d6
Mobile fails now with ActionController::UnknownFormat
2017-08-12 15:39:22 +02:00
Benjamin Neff
80c241bc7a
Replace redirect_to :back with redirect_back
...
Also remove some unused html responses
2017-08-12 15:39:22 +02:00
Benjamin Neff
d0b634852b
Fix belongs_to, it is now required by default
2017-08-12 15:39:20 +02:00
ivan sebastian
b154e9d7f9
support cmd+enter for post submission
2017-08-11 23:33:37 +07:00
Benjamin Neff
280a9e2023
Merge pull request #7523 from svbergerem/improve-adding-posts-to-stream
...
Improve adding posts to stream
2017-08-11 03:21:48 +02:00
Steffen van Bergerem
4c7948c7f7
Use id in stream comparator as fallback
2017-08-11 02:24:51 +02:00
Benjamin Neff
43bdebca74
Merge pull request #7522 from svbergerem/fix-autosize-comments-conversations
...
Call autosize when changing input via markdown editor
2017-08-10 22:31:12 +02:00
flaburgan
0798bfbc8c
Refactor ids to classes, reorder css properties, css selectors depth
2017-08-10 17:51:01 +02:00
flaburgan
ae73294f41
Improved responsive header
2017-08-10 17:51:01 +02:00
Steffen van Bergerem
d4bdb2fcb4
Call autosize when changing input via markdown editor
...
Fixes #7521
2017-08-10 16:42:19 +02:00
Benjamin Neff
9d2d20e854
Merge pull request #6726 from cmrd-senya/archive-schema
...
Update the user data export archive format.
2017-08-10 10:54:02 +02:00
cmrd Senya
9bcdc90cfd
Fix Person.in_aspects scope multiple return
...
Fix Person.in_aspects scope to return each person only once when the
person is in multiple aspects.
2017-08-10 09:36:34 +03:00
cmrd Senya
d8398caf2e
Move misc_spec.rb to spec/spec
...
spec/spec is a new folder for "tests for tests"
2017-08-10 09:36:29 +03:00
cmrd Senya
7374661e2f
Update the user data export archive format.
...
This commit introduces changes to the user data export archive format.
This extends data set which is included in the archive. This data can be
then imported to other pods when this feature is implemented.
Also the commit adds the archive format json schema. ATM it is used in
automatic tests only, but in future it will also be used to validate
incoming archives.
2017-08-10 09:36:26 +03:00
Benjamin Neff
eefa6701a8
Merge pull request #7520 from svbergerem/increase-mobile-post-action-size
...
Include count in mobile post action link and increase reshare counter after reshare
2017-08-10 01:30:39 +02:00
Steffen van Bergerem
bc0088eb47
Increase mobile reshare counter after reshare
2017-08-10 01:16:53 +02:00
Steffen van Bergerem
dc828e0e5a
Prevent publisher from closing in preview mode
...
Fixes #7245
2017-08-09 22:12:00 +02:00
cmrd Senya
621d269760
MD editor coversations&comments: refactorings
...
Javascript refactorings for better maintainability:
* simplePreview function to avoid code duplication
* Preloaded conversation is processed in a slightly different way
* Split isPreviewOrTexareaNotEmpty function since it has more than one responsibility
2017-08-09 21:49:25 +02:00
cmrd Senya
2c3f116326
Add new scopes for the Post model
2017-08-09 21:43:37 +03:00
cmrd Senya
c63493b0d1
New Exporter::NonContactAuthors class
...
This class is capable of quering a list of people from authors of given posts that are non-contacts of a given
user.
2017-08-09 21:43:31 +03:00
cmrd Senya
8f4498506d
Fix autosize for the textarea in conversations
...
We need to reinit autosize when we navigate in conversations with the backbone router.
2017-08-09 20:35:23 +03:00
Augier
7b711254a5
Fix CSS and blur on commant submission
2017-08-09 20:35:23 +03:00
Augier
fd39a48bea
Add markdown editor on conversations and comments
2017-08-09 20:35:23 +03:00
cmrd Senya
c985af1f85
New Exporter::OthersRelayables class
...
This class implements methods that allow to query relayables (comments, likes, participations,
poll_participations) of other people for posts of the given person.
2017-08-09 18:09:04 +03:00
cmrd Senya
fca6121c6a
Exporter::PostsWithActivity class
...
This class allows to query posts where a person made any activity (submitted comments,
likes, participations or poll participations).
2017-08-09 18:09:04 +03:00
cmrd Senya
7db4f825a6
Refactor account deletion spec
...
This commit refactors account deletion spec by moving data creation to a helper
object DataGenerator.
2017-08-09 18:09:04 +03:00
flaburgan
1eea034844
Add a test
2017-08-07 20:21:51 +02:00
Benjamin Neff
7a26456875
Add checksums to assets in specs
2017-07-30 05:21:33 +02:00
Steffen van Bergerem
308bb1f77a
Fix filename typo for post interaction presenter spec
2017-07-26 12:01:38 +02:00
Benjamin Neff
e036ffccc9
Merge pull request #7504 from svbergerem/update-jasmine
...
Update jasmine
2017-07-25 22:47:05 +02:00
Steffen van Bergerem
adf35b4bf0
Bump jasmine
2017-07-25 16:25:44 +02:00
netagonen
ce90d6a020
Replace Diaspora* with pod_name in the FROM header
...
Add pod name to FROM: header for no sender case
2017-07-25 00:49:02 +02:00
Rete2
2be0644281
Issue #6559 : Changed default mail FROM header and tests
2017-07-25 00:46:02 +02:00
Benjamin Neff
a4c26b7464
Exclude ignored people from followed tags when building stream-relation
...
This improves the main stream when you have less or inactive contacts
and ignored an active person that posts many posts with tags. When the
person is only removed after collecting all post ids, you don't see
posts with tags from other people.
2017-07-23 23:33:43 +02:00
Benjamin Neff
8942bb98c8
Send and receive public flag for profile
2017-07-23 02:36:29 +02:00
Benjamin Neff
f9476409c8
Send public profiles publicly
...
this will help big profiles, and the informations are public anyway, so no
need to encrypt them.
fixes #3164
2017-07-23 02:36:22 +02:00
Benjamin Neff
31e85f32ac
Bump carrierwave
2017-07-22 23:43:07 +02:00
Benjamin Neff
be8a1dfef4
Add tests for ContactRetraction
2017-07-03 03:14:42 +02:00
Benjamin Neff
4f9e560ab3
Use RFC 7033 webfinger from diaspora_federation gem
2017-07-03 03:14:41 +02:00
Benjamin Neff
283722a693
Use build_relayable_federation_entity helper for receive specs
2017-07-03 03:14:41 +02:00
Benjamin Neff
3ab674552f
Rename xml_order to signature_order
2017-07-03 03:14:41 +02:00
Benjamin Neff
0f551c7b19
Fix public flag for contact retractions
2017-07-03 03:14:41 +02:00
Benjamin Neff
4244f2a5df
Make Participation entity non-relayable
...
Related to diaspora/diaspora_federation#35
2017-07-03 03:14:41 +02:00
Benjamin Neff
246d1ebbdf
Remove legacy post xml
...
This was used for the old post fetching
Related to diaspora/diaspora_federation#31
2017-07-03 03:14:40 +02:00
Benjamin Neff
a6d7dbf1dd
Send MagicEnvelope as body with correct Content-Type in specs
...
Related to diaspora/diaspora_federation#30
2017-07-03 03:14:40 +02:00
Benjamin Neff
381c03cfd7
Remove backward-compatibility for Retractions
2017-07-02 23:56:01 +02:00
Benjamin Neff
b6b0aac969
Send only Retractions
...
Related to diaspora/diaspora_federation#27
2017-07-02 23:56:00 +02:00
Benjamin Neff
e907b3eb18
Send Contact entity for start/stop sharing
...
Related to diaspora/diaspora_federation#32
2017-07-02 23:56:00 +02:00
Benjamin Neff
95def40c55
Make Message entity non-relayable
...
Related to #36
2017-07-02 23:56:00 +02:00
Benjamin Neff
87d0778086
Remove guid and public_key from WebFinger
...
Related to diaspora/diaspora_federation#39
2017-07-02 23:56:00 +02:00
Benjamin Neff
189c223224
Fix notification factory
2017-07-02 23:55:59 +02:00
Benjamin Neff
5e3ea249a9
Replace additional_xml_elements with additional_data for relayables
2017-07-02 23:55:59 +02:00
Benjamin Neff
78c7156e72
Replace FactoryGirl with Fabricate for federation factories
2017-07-02 23:55:59 +02:00
Benjamin Neff
44e10a9172
Merge branch 'next-minor' into develop
2017-05-26 01:51:37 +02:00
Mahonri Gibson
5739f67605
Save email without confirmation when podmail is disabled.
...
fixes #7195
closes #7455
2017-05-26 01:50:55 +02:00
Dennis Schubert
1e06fd786c
Merge branch 'next-minor' into develop
2017-05-21 12:06:41 +02:00
Benjamin Neff
e177706769
Add admin account username to NodeInfo metadata
...
Fixes #7421
closes #7447
2017-05-21 12:06:35 +02:00
Benjamin Neff
7934c1e969
Add NodeInfo 2.0 support
2017-05-21 12:05:54 +02:00
Benjamin Neff
ee05cc8270
Merge branch 'next-minor' into develop
2017-05-13 02:09:25 +02:00
Mahonri Gibson
942e090b3a
Fix welcome message crashing server if podmin is set to invalid user.
...
Fixes #7363
closes #7452
2017-05-13 02:08:51 +02:00
Benjamin Neff
f4f0e724c6
Merge branch 'next-minor' into develop
2017-05-11 04:24:29 +02:00
Benjamin Neff
02b4d3f347
Don't raise when the public key of a person is "broken"
...
Breaking a public key of a person can be used to "block" receiving posts
from this person on the pod. So we should handle that case better and
not just trigger many retries for something that will fail again.
closes #7448
2017-05-11 04:24:13 +02:00
Benjamin Neff
064fc3cc45
Merge branch 'next-minor' into develop
2017-05-05 02:30:56 +02:00
Steffen van Bergerem
23d3d9dc3f
Use post page title for atom feeds and add entry author
...
Fixes #7249
closes #7420
2017-05-05 02:30:46 +02:00
Steffen van Bergerem
6dc4493685
Add spec for post_page_title for reshares
2017-05-05 02:29:28 +02:00
Steffen van Bergerem
fc28d6af35
Fix first comment in mobile view with french locale
...
Fixes #7438 . The regression has possibly been introduced by #7207 .
closes #7441
2017-05-05 02:26:22 +02:00
Benjamin Neff
e91a0a57a3
Merge branch 'next-minor' into develop
2017-04-08 00:00:56 +02:00
Steffen van Bergerem
bcb75e3082
Add avatar fallback for conversations view
...
Fixes #4991
2017-04-08 00:00:12 +02:00
Steffen van Bergerem
1c1af74e9f
Add avatar fallback for typeahead suggestions
2017-04-07 23:59:58 +02:00
Steffen van Bergerem
c94bac3cf9
Return 406 instead of 500 for statistics.json
...
Fixes #7406
2017-03-30 23:17:58 +02:00
Steffen van Bergerem
e8ee74ef87
Remove statistics.json
2017-03-27 15:54:34 +02:00
Benjamin Neff
d9b02418b6
Merge branch 'next-minor' into develop
2017-03-27 00:04:53 +02:00
Steffen van Bergerem
3ce4bba383
Only remove post from stream after successful response
...
Pass destroyModel from post control view to post view
and don't listen to the remove event in the post view
anymore. The `remove` function will be called from the
base view.
Fixes #5445
2017-03-26 23:50:48 +02:00
Benjamin Neff
d0fcdc254e
Only backport mention syntax when the author is local
...
We don't need to change new to old syntax when we receive a post from a
newer pod, since we can handle the new syntax. This is only needed when
sending it to older pods.
related to #7392
2017-03-25 23:42:19 +01:00
Benjamin Neff
06b61b6480
Merge branch 'next-minor' into develop
2017-03-25 20:38:00 +01:00
Steffen van Bergerem
05e9798027
Fix sharing indicator on profile page for blocked users
...
closes #7382
2017-03-25 20:35:45 +01:00
cmrd Senya
c2f352d837
Comment mentions front-end
2017-03-24 00:40:24 +02:00
cmrd Senya
71e0bdc411
app_spec fixes
2017-03-18 16:50:55 +02:00
cmrd Senya
c90cb3328e
jQuery 3 integration
2017-03-18 16:50:52 +02:00
Steffen van Bergerem
1b9ab16039
Merge branch 'next-minor' into develop
2017-03-06 21:11:54 +01:00
cmrd Senya
2739259fb6
some more replacements for deprecated jquery methods
...
closes #7356
2017-03-06 21:11:47 +01:00
cmrd Senya
f36a4cd1f5
don't use the deprecated ".selector" method
2017-03-06 21:11:13 +01:00
cmrd Senya
a479db1c96
a missing spy
2017-03-06 21:11:12 +01:00
Steffen van Bergerem
6fce2810e5
Merge pull request #7331 from SuperTux88/fix-mentioned-in-comments-notifications
...
Fix mentioned in comments notifications
2017-03-05 20:07:25 +01:00
Benjamin Neff
509f429cc8
Move 'distinct' to 'allowed_to_be_mentioned_in_a_comment_to'
2017-03-05 17:59:28 +01:00