Don't export chat_enabled flag anymore

The chat is already removed for 0.8, so there is no need to still export
this data since it can't be imported anyway.

Related to #8069

closes #8265
This commit is contained in:
Benjamin Neff 2021-07-03 03:28:29 +02:00
parent 342d4f7fde
commit 8f804e376a
No known key found for this signature in database
GPG key ID: 971464C3F1A90194
5 changed files with 6 additions and 9 deletions

View file

@ -3,6 +3,7 @@
## Refactor
* Cache local posts/comments count for statistics [#8241](https://github.com/diaspora/diaspora/pull/8241)
* Fix html-syntax in some handlebars templates [#8251](https://github.com/diaspora/diaspora/pull/8251)
* Remove `chat_enabled` flag from archive export [#8265](https://github.com/diaspora/diaspora/pull/8265)
## Bug fixes

View file

@ -2,6 +2,6 @@
module Export
class AspectSerializer < ActiveModel::Serializer
attributes :name, :chat_enabled
attributes :name
end
end

View file

@ -35,8 +35,7 @@
"items": {
"type": "object",
"properties": {
"name": { "type": "string" },
"chat_enabled": { "type": "boolean" }
"name": { "type": "string" }
},
"required": [
"name"

View file

@ -46,12 +46,10 @@ describe Diaspora::Exporter do
user: {
"contact_groups": [
{
"name": "generic",
"chat_enabled": false
"name": "generic"
},
{
"name": "Work",
"chat_enabled": false
"name": "Work"
}
]
}

View file

@ -6,8 +6,7 @@ describe Export::AspectSerializer do
it "has aspect attributes" do
expect(serializer.attributes).to eq(
name: aspect.name,
chat_enabled: aspect.chat_enabled
name: aspect.name
)
end
end