kopia lustrzana https://gitlab.com/jaywink/federation
Remove Post.photos attribute which was never used
It was replaced by the _children attribute.merge-requests/130/head
rodzic
bbd85571a1
commit
659ba5643d
|
@ -5,6 +5,9 @@
|
||||||
### Fixed
|
### Fixed
|
||||||
* Fix getting sender from a combination of legacy Diaspora encrypted payload and new entity names (for example `author`). This combination probably only existed in this library.
|
* Fix getting sender from a combination of legacy Diaspora encrypted payload and new entity names (for example `author`). This combination probably only existed in this library.
|
||||||
|
|
||||||
|
### Removed
|
||||||
|
* `Post.photos` entity attribute was never used by any code and has been removed. Child entities of type `Image` are stored in the `Post._children` as before.
|
||||||
|
|
||||||
## [0.12.0] - 2017-05-22
|
## [0.12.0] - 2017-05-22
|
||||||
|
|
||||||
### Backwards incompatible changes
|
### Backwards incompatible changes
|
||||||
|
|
|
@ -191,7 +191,6 @@ class Post(RawContentMixin, GUIDMixin, HandleMixin, PublicMixin, CreatedAtMixin,
|
||||||
"""Reflects a post, status message, etc, which will be composed from the message or to the message."""
|
"""Reflects a post, status message, etc, which will be composed from the message or to the message."""
|
||||||
provider_display_name = ""
|
provider_display_name = ""
|
||||||
location = ""
|
location = ""
|
||||||
photos = []
|
|
||||||
|
|
||||||
_allowed_children = (Image,)
|
_allowed_children = (Image,)
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ class TestGetBaseAttributes():
|
||||||
entity = Post()
|
entity = Post()
|
||||||
attrs = get_base_attributes(entity).keys()
|
attrs = get_base_attributes(entity).keys()
|
||||||
assert set(attrs) == {
|
assert set(attrs) == {
|
||||||
"created_at", "guid", "handle", "location", "photos", "provider_display_name", "public", "raw_content",
|
"created_at", "guid", "handle", "location", "provider_display_name", "public", "raw_content",
|
||||||
"signature",
|
"signature",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue