Minor stuff
This commit is contained in:
parent
3ef0a1a27f
commit
fcd0c97097
@ -15,13 +15,12 @@
|
||||
</div>
|
||||
<p class="text-gray-300">{{ publication.content }}</p>
|
||||
<div class="flex justify-between text-gray-400 text-sm mt-2">
|
||||
<button class="hover:text-blue-400">Me gusta</button>
|
||||
<button class="hover:text-blue-400">Comentar</button>
|
||||
<button class="hover:text-blue-400">Compartir</button>
|
||||
<button class="hover:text-blue-400"> </button>
|
||||
<button class="hover:text-blue-400">Share</button>
|
||||
</div>
|
||||
</div>
|
||||
{% empty %}
|
||||
<p class="text-gray-500">No hay publicaciones para mostrar.</p>
|
||||
<p class="text-gray-500">No timeline to display.</p>
|
||||
{% endfor %}
|
||||
|
||||
{% endblock %}
|
||||
|
@ -11,11 +11,11 @@ def user_timeline(request, user_id):
|
||||
headers = {'Authorization': f"Bearer {user.access_token}"}
|
||||
timeline_url = f"{user.pds_url}/xrpc/app.bsky.feed.getTimeline"
|
||||
|
||||
# Realizamos la solicitud al PDS
|
||||
response = requests.get(timeline_url, headers=headers)
|
||||
|
||||
if response.status_code != 200:
|
||||
return JsonResponse({"error": "Failed to retrieve timeline"}, status=500)
|
||||
error = f"Failed to retrieve timeline: {response.content}"
|
||||
return JsonResponse({"error": error}, status=500)
|
||||
|
||||
feed_data = response.json()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user