Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Federation Library
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ganggo
Federation Library
Commits
5c90e6d6
Commit
5c90e6d6
authored
Jan 31, 2018
by
zauberstuhl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extract entity photo from post file
parent
60ba64b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
16 deletions
+34
-16
entity_photo.go
entity_photo.go
+33
-0
entity_post.go
entity_post.go
+1
-16
No files found.
entity_photo.go
0 → 100644
View file @
5c90e6d6
package
federation
//
// GangGo Diaspora Federation Library
// Copyright (C) 2017 Lukas Matt <lukas@zauberstuhl.de>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
type
EntityPhoto
struct
{
Guid
string
`xml:"guid"`
Author
string
`xml:"author"`
Public
bool
`xml:"public"`
CreatedAt
Time
`xml:"created_at"`
RemotePhotoPath
string
`xml:"remote_photo_path"`
RemotePhotoName
string
`xml:"remote_photo_name"`
Text
string
`xml:"text"`
StatusMessageGuid
string
`xml:"status_message_guid"`
Height
int
`xml:"height"`
Width
int
`xml:"width"`
}
type
EntityPhotos
[]
EntityPhoto
entity_post.go
View file @
5c90e6d6
...
...
@@ -26,7 +26,7 @@ type EntityStatusMessage struct {
CreatedAt
Time
`xml:"created_at"`
ProviderName
string
`xml:"provider_display_name"`
Text
string
`xml:"text,omitempty"`
Photo
*
EntityPhotos
`xml:"photo,omitempty"`
Photo
s
*
EntityPhotos
`xml:"photo,omitempty"`
Location
*
EntityLocation
`xml:"location,omitempty"`
Poll
*
EntityPoll
`xml:"poll,omitempty"`
Public
bool
`xml:"public"`
...
...
@@ -42,21 +42,6 @@ type EntityReshare struct {
RootGuid
string
`xml:"root_guid"`
}
type
EntityPhoto
struct
{
Guid
string
`xml:"guid"`
Author
string
`xml:"author"`
Public
bool
`xml:"public"`
CreatedAt
Time
`xml:"created_at"`
RemotePhotoPath
string
`xml:"remote_photo_path"`
RemotePhotoName
string
`xml:"remote_photo_name"`
Text
string
`xml:"text"`
StatusMessageGuid
string
`xml:"status_message_guid"`
Height
int
`xml:"height"`
Width
int
`xml:"width"`
}
type
EntityPhotos
[]
EntityPhoto
type
EntityLocation
struct
{
Address
string
`xml:"address"`
Lat
string
`xml:"lat"`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment