Benjamin Neff
9657810208
create migration to link share visibility directly with users
...
Also:
* remove share visibilities where the shareable is already deleted
* remove share visibilities where the user doesn't exist
* remove `created_at` and `updated_at` to make the table smaller
2016-03-03 21:43:08 +01:00
Dennis Schubert
7c88fb7936
Merge pull request #6586 from cmrd-senya/drop-signatures
...
Remove parent author signature for relayables from the DB
2016-03-03 17:39:28 +01:00
theworldbright
38439277d6
Add licenses where appropriate
2016-01-04 17:22:44 +09:00
theworldbright
2a002d90c4
Allow for longer redirect uri lists
2016-01-04 16:49:56 +09:00
augier
7b2be0d3c6
Support displaying TOS and policy
2016-01-04 16:49:56 +09:00
theworldbright
9c9880d880
Move JWKs files to database
2016-01-04 16:49:56 +09:00
theworldbright
da766d8e8b
Revoke previously issued tokens on duplicate request
2016-01-04 16:49:55 +09:00
theworldbright
fd467cd42b
Add private_key_jwt support
...
See
- http://openid.net/specs/openid-connect-core-1_0.html#ClientAuthentication
- https://openid.net/specs/openid-connect-registration-1_0.html#ClientMetadata
2016-01-04 16:49:55 +09:00
theworldbright
a76f51a6a5
Use redirect_uri if no sector identifier for ppid
...
As according to http://openid.net/specs/openid-connect-core-1_0.html#PairwiseAlg :
"If the Client has not provided a value for
sector_identifier_uri in Dynamic Client Registration
[OpenID.Registration], the Sector Identifier used
for pairwise identifier calculation is the host
component of the registered redirect_uri."
2016-01-04 16:49:55 +09:00
theworldbright
4e18f3849d
Remove GUID as primary key in ppid table
2016-01-04 16:49:55 +09:00
theworldbright
21175e7eee
Allow POST requests for user info endpoint
2016-01-04 16:49:54 +09:00
theworldbright
1a7f2edc01
Perform major refactoring
...
- Add foreign_keys
- Remove unused classes/methods
- Fix pronto errors
- Add method to retrieve client id from name
- Remove TODO comments
- Fix unnecessary private key generation
2016-01-04 16:49:54 +09:00
theworldbright
e55a0b0d0b
Replace scopes with constants in Authorization
2016-01-04 16:49:54 +09:00
theworldbright
724f32604b
Add nonce to auth code flow
2016-01-04 16:49:53 +09:00
theworldbright
65c40f236e
Load scopes from seeds
...
Signed-off-by: theworldbright <kent@kentshikama.com>
2016-01-04 16:49:51 +09:00
theworldbright
99d6d7b3e7
Add pairwise pseudonymous identifier support
...
Squashed commits:
[a182de7] Fix pronto/travis errors
2016-01-04 16:49:51 +09:00
theworldbright
e5932968fd
Add support for authorization code flow
2016-01-04 16:49:51 +09:00
theworldbright
3cbe75469b
Add support for scopes
...
Remove scopes from tokens
Squashed commits:
[83db38f] Add redirect uris to supported metadata
2016-01-04 16:49:51 +09:00
augier
de4f68c289
Support for more metadata
2016-01-04 16:49:50 +09:00
theworldbright
979adca1e7
Fix account deleter specs
...
Squashed commits:
[7ff4276] Adjust discovery controller
2016-01-04 16:49:50 +09:00
theworldbright
7b80a7408d
Add integration tests for implicit flow
...
Squashed commits:
[d5001fe] Refactor
[8d8a23f] Add test for when authorization is denied
[659fc56] Adjust password flow integration test
2016-01-04 16:49:50 +09:00
theworldbright
2d762da072
Adjust tokens to fit revised Authorization
2016-01-04 16:49:50 +09:00
theworldbright
17fde49d61
Implement ID Token for the implicit flow
2016-01-04 16:49:50 +09:00
theworldbright
1475672d72
Fix authorization and related models
...
Squashed commits:
[a844d37] Remove unnecessary class_name's from models
[529a30c] Further adjust authorization and related models
2016-01-04 16:49:50 +09:00
augier
031679762a
Redesign the models
2016-01-04 16:49:49 +09:00
Augier
9140c8244b
Support for refresh tokens w/ no tests
2016-01-04 16:49:49 +09:00
Augier
73cc55940d
Fix travis errors and refactor
2016-01-04 16:49:49 +09:00
theworldbright
059933f076
Add scopes and authorization models
2016-01-04 16:49:49 +09:00
theworldbright
7c75eb5901
Make access tokens belong to user not client app
2016-01-04 16:49:48 +09:00
theworldbright
beae77102d
Allow current user to be obtained from access token
2016-01-04 16:49:16 +09:00
theworldbright
efdfe318fd
Add ability to get user info from access tokens
2016-01-04 16:48:42 +09:00
Augier
a1f3d5f5f9
Getting token from user credential flow
2016-01-04 16:45:21 +09:00
augier
8d8faf684c
OpenID Connect debut work
2016-01-04 16:45:21 +09:00
cmrd Senya
a2ce47fae5
Remove parent author signature for relayables from the DB
...
since it is considered redundant
2015-12-16 22:00:35 +03:00
Lukas Matt
78f9b39e55
Use polymorphic association for the report item
...
* Adopt pronto suggestions
Signed-off-by: Lukas Matt <lukas@zauberstuhl.de>
2015-10-03 17:18:03 +02:00
Florian Staudacher
738413c65f
fix some issues with pod-checking
...
add tooltips in the frontend
fix a JS problem with empty hostname
use `find_in_batches` correctly
add a migration to clean up the pods table + unique index on hostname
2015-08-30 18:50:34 +02:00
Florian Staudacher
ea397ffdfb
Add connection test for pods in the network
...
* add a class for checking pod connectivity
* extend pod model to handle new functionality
* add an admin frontend to list pods and re-trigger checks manually
* add a daily worker to run through all the pods
* add unit tests for most of the new code
2015-08-24 22:04:53 +02:00
Jonne Haß
6ee3843449
Merge branch 'stable' into develop
2015-07-26 13:11:49 +02:00
theworldbright
2a3dde1ae5
Refactor PostService and extract its tests
...
Squashed commits:
[ada0f09] Remove favorites from Posts table
closes #6208
2015-07-26 13:10:24 +02:00
cmrd Senya
7a5a0a909a
Allow extended profile fields (previously private profile) to be set public ( #5684 ).
...
This adds a new boolean field "public_details" to person model.
By default it is false and represents old behaviour. When it is
set to true, extended profile (bio,location,gender,birthday)
get available to people who didn't log into diaspora and to
people you don't share with (i.e. it is made public).
In UI, a bootstrap-switch added on the profile-edit page in order to
change the setting.
This also changes wording from public/private profile to basic/extended.
The latter could be public and limited.
2015-07-11 04:36:45 +03:00
Dennis Schubert
8a4ec1d4c6
Merge branch 'stable' into develop
2015-06-08 04:18:38 +02:00
Benjamin Neff
99b36598c7
add migration to fix public flag of photos
2015-06-08 04:15:17 +02:00
efstrian
57d766346c
Issue #4297 : Enable color theme setup
2015-06-07 19:57:16 +03:00
Dennis Schubert
ffc3cb711f
Merge branch 'stable' into develop
2015-06-02 02:35:21 +02:00
Benjamin Neff
b8a6af2742
add db migration to cleanup default avatar image-urls
...
closes #6014
2015-06-02 02:34:32 +02:00
Jonne Haß
f257658e46
Revert "Revert "Merge pull request #5852 from margori/3393-activity-stream-keeping-retracted-participations""
...
This reverts commit 2c7848e3cb .
2015-05-04 00:43:41 +02:00
Jonne Haß
2c7848e3cb
Revert "Merge pull request #5852 from margori/3393-activity-stream-keeping-retracted-participations"
...
This reverts commit 096fa2ddbb , reversing
changes made to f7d1105148 .
2015-05-04 00:36:27 +02:00
Florian Staudacher
913d3484a6
fix minor errors in spec helper scripts, remove db/seeeds.rb
2015-04-28 01:02:27 +02:00
Jonne Haß
3a8724bf0b
Merge branch 'release/0.5.0.0-RC' into develop
2015-04-19 16:22:34 +02:00
Benjamin Neff
4be8a0bed9
change TEXT columns back to TEXT
...
mysql changes the type of TEXT columns to MEDIUMTEXT with "CONVERT TO",
but we don't want this, so change this columns back to TEXT.
see: https://bugs.mysql.com/bug.php?id=31291
2015-04-19 15:45:20 +02:00
Benjamin Neff
f4fd77fa7c
use "CONVERT TO" to change the encoding for the table and all character columns
...
see: https://dev.mysql.com/doc/refman/5.6/en/charset-conversion.html
2015-04-18 17:54:15 +02:00
Marcelo Briones
6636a89118
Add participation counter
2015-04-11 14:41:17 -03:00
Jonne Haß
cc5bd16eb4
Merge pull request #5848 from svbergerem/migrate-only-sharing
...
Fix only sharing flag for contacts that are receiving
2015-04-04 00:16:37 +02:00
Steffen van Bergerem
c7c20f9b4e
Fix only sharing flag for contacts that are receiving
2015-04-03 23:45:27 +02:00
Steffen van Bergerem
019dc1478c
Add migration to remove deleted aspects from auto follow back
2015-04-03 23:02:41 +02:00
Jonne Haß
6b217c32f2
Shorten index for tweet_id too in mysql utf8mb4 migration
2015-03-15 16:59:50 +01:00
Jonne Haß
414cfbdae0
Array#to_h is new in Ruby 2.1, we still suppport 2.0
2015-03-15 15:59:06 +01:00
Marcelo Briones
b154d87070
Exports user photos as zip file
2015-03-03 19:45:57 -03:00
Jonne Haß
a0c22659d5
Monkey patch to prevent dumping limit on boolean fields
2015-02-27 17:00:41 +01:00
Jonne Haß
7e245a0082
Fix orphan conversations migration
...
Can't delete all with group/having
2015-02-27 17:00:41 +01:00
Jonne Haß
657d0baea7
Drop foreigner, Rails 4.2 ships the provided functionality
2015-02-27 17:00:41 +01:00
zachrab
f695b5d3e7
Set disable_mail to true
...
Add #clear_account! disable mail spec
Add migration for disabling mail for all closed accounts
Change migration to use #update_all for disable_mail attribute
Add #clear_account! false fields spec
2015-02-19 16:45:39 -08:00
Jonne Haß
b991ffe455
Merge pull request #5624 from dimaursu/emoji
...
Add collation and config check
2015-02-08 00:04:46 +01:00
Dumitru Ursu
0829e6f394
Add collation and config check
2015-02-06 00:49:07 +02:00
Dumitru Ursu
28fdba5d89
Shorten indexes
...
Fix merge conflict
2015-01-20 22:41:52 +02:00
Dumitru Ursu
a733a774d1
Refactor & DRY encoding migration
...
Dynamic row for MySQL
Set larger column index sizes
2015-01-19 02:19:39 +02:00
Dumitru Ursu
dda5f71124
Add warning about encoding change
...
Add warning about MySQL collation
Fix database index length
This allows new databases to be created with utf8mb4, on MySQL. The maximum
column size is 767 bytes. Each character is 4 bytes long -> 767 / 4 = 191
characters for the column.
2015-01-19 02:19:39 +02:00
Dumitru Ursu
b0ef4509a6
Change the adapter encoding to utf8mb4
2015-01-19 02:18:19 +02:00
Marcelo Briones
63eca447d0
Strip EXIF data as user preference
2015-01-18 10:28:28 -03:00
James Kiesel
1c69dd7752
Add contacts/posts, and GZipping JSON exporter output
2015-01-15 00:20:19 +13:00
margori
e6c605d92b
Destroy conversation when all participants leave it
2014-12-17 11:33:23 -03:00
Jonne Haß
ed0005c44d
Add migration to drop invalid OpenGraphCaches, closes #5465
...
URI.extract recognized http:// as an URL, causing invalid
associations. #5347 already fixed the parsing, this just
cleans up the caches to get rid of the false associations.
2014-12-09 05:32:04 +01:00
Lukas Matt
56e882879a
Add chat migration
...
* add chat_contacts table
* add chat_fragments table
* add chat_enabled column to aspects
* add chat_offline_messages table
2014-11-13 11:14:54 +01:00
Jason Robinson
69c3566958
Maintenance feature to remove old users
...
Add Sidetiq webview to the Sidekiq monitoring panel
Add rake task maintenance:queue_users_for_removal
This basically just triggers an immediate run of the normal maintenance remove old users functionality that is normally (if enabled) scheduled to run once a day via sidetiq
Add extra safety when checking for user removal due to inactivity.
Now also user.last_seen will also be checked to make sure a user will not be removed in the event that the Devise rememember me login functionality has stopped the users remove_after timestamp from being removed.
Add initializer for maintenance job.
Add warning about mail being disabled if remove_old_users maintenance is enabled.
2014-10-16 22:53:08 +03:00
jaideng123
642e5ab45b
Fixed Open Graph db insertion
2014-09-06 14:49:34 -05:00
Jonne Haß
1c9f030f7f
Merge pull request #5173 from remcohh/develop
...
Consolidate migrations
2014-08-29 17:42:33 +02:00
Remco Huijdts
edae905859
Add correct schema
2014-08-29 14:55:40 +02:00
Remco Huijdts
858551387f
correct initial schema
2014-08-28 13:23:24 +02:00
Remco Huijdts
28a71a46aa
Consolidate migrations
2014-08-28 12:28:06 +02:00
jaideng123
f53001577e
Increase max length of simple_captcha to 12
2014-08-26 13:24:00 -05:00
khall
6d3528c539
Fix for issue 5040: Adds completed_at column to account_deletions and sets timestamp upon successful completion. Depends on uniqueness of diaspora_handle when combined with person_id
2014-08-24 17:06:33 -07:00
Jonne Haß
72d1ed8f7d
bump acts-as-taggable-on
2014-06-01 18:42:51 +02:00
Lukas Matt
3d9fceb479
DB fix to work with existing entries
...
* added temp. default values for user_id and item_type
* changed model validation for item_type
2014-05-15 07:23:44 -04:00
Lukas Matt
cfc95b01f7
Revoke drop of non-existing table
2014-05-15 07:23:44 -04:00
Lukas Matt
218845d5b4
Changed and renamed database columns
...
* changed user_id type to integer
* renamed post_id to item_id
* renamed post_type to item_type
2014-05-15 07:23:44 -04:00
Lukas Matt
1748d3b940
It is now possible to report comments
...
* Renamed PostReport to Report
* Added report button to SPV
* Updated rspec
refs diaspora/diaspora#4732
refs diaspora/diaspora#4710
refs diaspora/diaspora#4711
refs diaspora/diaspora#4517
2014-05-15 07:23:43 -04:00
Jannik Streek
8a4f833d1d
added more tests for the poll federation + fixed broken rspec tests
2014-03-31 18:14:06 +02:00
Jannik Streek
fe67bdf2e7
added tests for poll federation and impl for the federation itself. Still in progess
2014-03-31 18:14:06 +02:00
Jannik Streek
dfbe17d046
Poll input fields and data model now available
...
question field of poll now in db
fixed merge issues
2014-03-31 18:14:06 +02:00
Jason Robinson
5fe5507128
Add devise_lastseenable for user last seen tracking.
...
Adds a timestamp to user model which is touched when user comes back. Statistics active users counts now use these more reliable timestamps. Fixes #4734
2014-02-22 23:22:46 +02:00
Jonne Haß
9ea6e9c166
Merge pull request #4517 from Zauberstuhl/report_post_feature
...
Added post reporter feature
Conflicts:
Changelog.md
app/assets/stylesheets/application.css.sass
db/schema.rb
2014-01-20 10:03:45 +01:00
Lukas Matt
5c9a3aaf3e
Added post report feature
...
You can report a single post by clicking the correct icon in the controler section
Workflow:
* Report a post as offensive
* Trigger alerts to every pod-admin
* Pod-admin can review it in the admin interface
* Delete the post or mark it as reviewed
2014-01-14 15:00:55 -05:00
Jason Robinson
db71c9c50b
Add mobile signup page captcha. Add test for user.sign_up method. Rewrite simple_captcha views to haml. Revert .rvmrc, fix indentation in config examp$
2014-01-06 22:00:53 +02:00
maruf
c17a474142
Simple captcha for signup page
2014-01-06 22:00:37 +02:00
Jonne Haß
1ab14ef368
Merge pull request #4337 from oliverbarnes/4312-index-key-too-long
...
Limit index key length when creating oembed caches
Conflicts:
db/schema.rb
2013-08-06 20:52:37 +02:00
Oliver Azevedo Barnes
2fc5a78c50
Add schema changes to migration fix
2013-08-05 13:41:59 -05:00
Fábián Tamás László
176c6826e0
opengraph POC
...
Fixed small-frame opengraph view
Fixed incompletely saved OpenGraphCache bug
2013-08-04 15:42:29 +02:00
Meitar Moscovitz
7d40fd1add
Delete cross-posted Tumblr posts when user deletes their Diaspora post.
2013-08-03 04:23:22 -04:00
Oliver Azevedo Barnes
7f4bc5550d
Limit index key length when creating oembed caches
2013-07-31 14:42:49 -05:00
Jonne Haß
7057f77924
fix ActivityStreams::Photo migration
2013-07-31 20:57:01 +02:00