Add joined date to profiles in web UI (#16169)
This commit is contained in:
		
					parent
					
						
							
								b42a8ef7d9
							
						
					
				
			
			
				commit
				
					
						2c77d97e0d
					
				
			
		
					 7 changed files with 34 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -13,7 +13,7 @@ class ActivityPub::ActorSerializer < ActivityPub::Serializer
 | 
			
		|||
             :inbox, :outbox, :featured, :featured_tags,
 | 
			
		||||
             :preferred_username, :name, :summary,
 | 
			
		||||
             :url, :manually_approves_followers,
 | 
			
		||||
             :discoverable
 | 
			
		||||
             :discoverable, :published
 | 
			
		||||
 | 
			
		||||
  has_one :public_key, serializer: ActivityPub::PublicKeySerializer
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -158,6 +158,10 @@ class ActivityPub::ActorSerializer < ActivityPub::Serializer
 | 
			
		|||
    !object.suspended? && !object.also_known_as.empty?
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def published
 | 
			
		||||
    object.created_at.midnight.iso8601
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  class CustomEmojiSerializer < ActivityPub::EmojiSerializer
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -55,6 +55,10 @@ class REST::AccountSerializer < ActiveModel::Serializer
 | 
			
		|||
    full_asset_url(object.suspended? ? object.header.default_url : object.header_static_url)
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def created_at
 | 
			
		||||
    object.created_at.midnight.iso8601
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def last_status_at
 | 
			
		||||
    object.last_status_at&.to_date&.iso8601
 | 
			
		||||
  end
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue