def serialize_tags
      serialized = {}
      tags.each do |tag|
        serialized[tag.id] = tag.serialize_base
      end
      serialized
    end
def serialize_tags
      serialized = {}
      tags.each do |tag|
        serialized[tag.id] = tag.serialize_base
      end
      serialized
    end
This function serializes the list of tags for the post.