mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-14 06:11:16 +00:00
[api2] Improve api for user avatar and add for group avatar
This commit is contained in:
@@ -283,7 +283,9 @@ def get_group_msgs(groupid, page, username):
|
||||
|
||||
return group_msgs
|
||||
|
||||
def get_timetamp(msgtimestamp):
|
||||
def get_timestamp(msgtimestamp):
|
||||
if not msgtimestamp:
|
||||
return 0
|
||||
timestamp = int(time.mktime(msgtimestamp.timetuple()))
|
||||
return timestamp
|
||||
|
||||
|
Reference in New Issue
Block a user